Go to your connection properties and note the Gateway Address (usually 192.168.1.1 or 10.10.10.1 ).
Run the printer driver installer. When prompted for the port, select Network/Ethernet and enter the IP address you just assigned. Option 2: Wi-Fi Direct Setup (Point-to-Point) xprinter xp-420b wifi setup
On your computer or smartphone, look for a Wi-Fi network named "XP-420B" or similar. Go to your connection properties and note the