Restart it. If that doesn't work, depending upon the device, check its networking configuration. Often times, just reconfiguring the network connection will be enough (this assumes that your printer is connected wirelessly). If still no luck, turn off your printer, router and modem, in that order, then turn them back on in reverse order. If after all of this, you still are experiencing connectivity issues, contact HP customer support.