How can I connect my PS4 to Wi-Fi without a controller?

How can I connect my PS4 to Wi-Fi without a controller?
Go to the Settings menu on your PS4. Find the PlayStation App Connection Settings menu. Select the Add Device menu on your PS4. There should be a code displayed on this screen.Step 2: Link the Devices

Open the PS4 app.
Tap the Connect to PS4 icon.
Select the Second Screen option.
Tap to link the devices.

Go to the Settings menu on your PS4. Find the PlayStation App Connection Settings menu. Select the Add Device menu on your PS4. There should be a code displayed on this screen.

Step 2: Link the Devices

  1. Open the PS4 app.
  2. Tap the Connect to PS4 icon.
  3. Select the Second Screen option.
  4. Tap to link the devices.