To connect the printer to a different Wi-Fi network, reset the printer’s network settings first.

For the procedure, refer to following WiFi Reset Instructions 

Then configure the new Wi-Fi connection. For the procedure, refer to User Manual.