May i know the exact error you are thrown with like "communication error" or anything else like that.
Is the printer properly configured with the WIFI router.
are they in the same LAN.
if not yet configured for WIFI,
Follow the below steps,
Scroll the wheel on the printer to settings,
Select Wireless LAN setup,
Select Easy Settings,
Punch in the SSID and the Security KEY
wait until the completeeion screen appears,
Hope this helps.