How do you fix PS4 Cannot connect to PSN within the time limit?

How do you fix PS4 Cannot connect to PSN within the time limit?
How to Fix PS4 ‘Cannot Connect to the Wi-Fi Network Within the Time Limit’ Errors

Check your internet connection.
Use a wired internet connection.
Check the PlayStation Network status.
Perform an internet connection test.
Reboot your router and modem and restart the PS4.
Upgrade the router firmware.

How to Fix PS4 ‘Cannot Connect to the Wi-Fi Network Within the Time Limit’ Errors
  1. Check your internet connection.
  2. Use a wired internet connection.
  3. Check the PlayStation Network status.
  4. Perform an internet connection test.
  5. Reboot your router and modem and restart the PS4.
  6. Upgrade the router firmware.