To address this problem please follow these steps: Try these steps first
Typically, you’ll see this error if your printer and device are on different wireless networks - that’s really the very first thing to check: Are both the printer and the Apple device on the same Wi-Fi network?