To connect your HP Envy 6400 printer to WiFi, follow these clear steps:

1. **Reset Network Settings on the Printer:**
– On the printer control panel, go to *Network Settings*.
– Select *Restore Network Defaults* or *Reset Network Configuration* to clear any previous WiFi settings[1][2][5].

2. **Activate Wi-Fi Setup Mode:**
– Press and hold the Wireless button on the back of the printer for about 5 seconds until the status light flashes (usually blue or purple). This puts the printer into Wi-Fi setup mode[2].

3. **Connect via HP Smart App:**
– Download and open the *HP Smart* app on your computer, smartphone, or tablet.
– Use the app to detect the printer and follow the on-screen instructions to select your WiFi network and enter your WiFi password[3][4].

4. **Alternative Direct Printer Setup:**
– On the printer, tap the Wireless icon or go to the *Setup* menu.
– Choose your WiFi network name (SSID) and input the password directly via the printer control panel if prompted[1].

Make sure that your WiFi network is active, and you have the correct network name and password. If you recently changed your WiFi router or network details, resetting the printer’s network settings is essential before reconnecting[1][2][5].

If issues persist, consult the HP support community or official HP support documents for troubleshooting steps specific to your environment[1][2].

This method ensures your HP Envy 6400 printer will connect seamlessly to your WiFi network.