I'm a total noob, but somewhat tech-savvy. This is a good printer. However, printer just wouldn't stay connected to the home wifi network. I had to keep on shutting down and restarting it when I wanted to print something if not within that 2 hour window this particular printer gives you. However, this is a simple fix. It's obviously the modem/router. Call your cable service provider (or log into the router if you know IP, username, and password) to change the radio frequency channel to 1, 6, 9 or 11 for 2G. Start with 11. However, your service provider will let you know what channels are compatible with your router. You can see your router's wireless settings usually under "wireless" and "radio". You can see the printer's channel under wireless settings then status. You need your printer's IP address for this. Just enter it into the browser (that is, if it's not in sleep mode, and disconnected). I spent hours and hours on the phone with HP Support, case numbers, etc, until finally, my service provider mentioned this might be the issue.
I've had no problems since. Printer connected to all devices. When it goes into sleep mode, it's idle and can be awoken even just by checking ink levels - lol.
Also, if connecting by 5G (2G actually better for long-range), the channel choices should be 36, 40, 44, and 48.
Bought extender/repeater to boost the signal to the printer. The printer was in the bedroom, which is far from away from the router. Since I couldn't move the printer (we live in an apt), I figured I needed a stronger signal. THIS FIXED THE PROBLEM. Since the printer is capable of 5G, I would set the extender's settings for that. I bought a TP-Link. Cheap and works great for $30. Amazon.