Hi,
Thanks for using the HP forum.
Have you tried using a Static IP address for your printer to fix the connection issues?
Here's a resource that shows you how to do it:
Creating a Static IP address using EWS
https://goo.gl/m4hexn
Hope that helps!