It's usually an IP address problem. Have you set up your printer with a static IP address? Sometimes a router will change the IP addresses of connected devices as, say, laptops and iPads come and go. The iPad then gets confused if the printer IP address changes. Try and see if you can allocate your printer a fixed IP address.
Tim