I have been putting up with this problem for over a year, and it keeps occurring more frequently. I am using Windows 10.
Sometimes, one of these would work:
1. Unplug the printer, wait 20 seconds, then plug it back in.
2. Rebooting the router.
3. Rebooting the computer.
4. Tried to setup a static IP for the printer. Not sure I did that right.
The last week nothing is resolving the problem.
Error message below.