To connect your **HP Deskjet 4100** printer to Wi-Fi, follow these steps:

1. **Press and hold the Wi-Fi button and Cancel button together on the printer for about 3 seconds** until the Wi-Fi light starts flashing. This puts the printer in wireless setup mode.

2. **On your smartphone or computer, download and open the HP Smart app** (available for iOS, Android, Windows, macOS).

3. In the HP Smart app, **select the option to add a new printer**. The app will search for your printer, showing something like “HP DJ 4100 Series.”

4. **Select your printer**, then choose your Wi-Fi network from the list and enter the Wi-Fi password. The password is usually on the back or bottom of your router.

5. Complete the setup steps as prompted by the app; your printer will connect to the Wi-Fi network.

You can also connect by:

– Using **WPS (Wi-Fi Protected Setup)** if your router supports it: press the WPS button on the router, then press and hold the Wi-Fi and Cancel buttons on the printer together.

– Setting up via **Wi-Fi Direct** for direct connection without a router.

This method is summarized and demonstrated in HP’s official videos and guides[1][2].

If you need to change the Wi-Fi network later, you can do so from the printer control panel or through the HP Smart app settings[3].