If the connection between the printer and the computer are not maintained properly. You have to make a step to enhance the network connection between the devices. If you are using the wireless router, check if the devices you are using are not acting as a hindrance to the connection. If you are using the Wired connection, plug out the cable and reconnect it.
rajan kumar