If you cannot connect to a service outside of PlayStation™Network, check the status of that service.
PlayStation™Network might be temporarily busy. Please try again later. You can check the network status by selecting Settings > Network > View Status of PlayStation™Network Services, or by using your PC or smartphone to access the PlayStation Network status page below.
Try these steps:
Restart the PS4.
Restart your router.
Contact your Internet service provider to check the status of your Internet connection.
Reset the router, select Settings > Network > Set Up Internet Connection, and then connect to the router again. For details, refer to the instructions supplied with the router.
Update the router firmware to the latest version. For details, refer to the instructions supplied with the router.
Select Settings > Network > Test Internet Connection, and then check your Internet connection status.
A firewall or other security measure might be preventing you from connecting to the network. Make sure your network devices do not block the following port numbers: