If you're having difficulty connecting to Wi-Fi on your PlayStation4, it could be due to it forgetting the network connection. To address this problem, try disconnecting other devices temporarily from your Wi-Fi network, upgrading to a faster Internet plan, or purchasing a router that manages bandwidth more effectively like the Asus AX1800 Wi-Fi 6 Router from ASUS. Alternatively, set a static IP address which prevents it automatically connecting with any Wi-Fi networks and gives more control over gaming experience.
Find this setting in the Advanced Settings, Network category of Advanced Settings menu. Select "Set Up Internet Connection," and then "Connect To Internet", selecting either Wi-Fi or local area network (LAN cable) options for connection. After selecting your preferred network, the PS4 will begin analyzing it.
Once the analysis is complete, you'll be asked to enter the password for your network. The system will display an alert stating that your password is incorrect; to accept and return twice without making changes manually. Otherwise, PS4 won't reconnect until a change has been manually made in its password settings.
PS4 consoles can remember up to eight networks at any one time, though only one should be active at any given time. Doing this will prevent losing internet connectivity and reduce data usage on your account. Changing network connections on your console may improve performance - although wired connections are usually recommended.
An annoying aspect of PlayStation 4 ownership can be when it can't connect to the internet, which can make gaming or firmware updates frustratingly impossible. To remedy this situation, try disabling network scan and assigning it a static IP address; or switch networks or power off and on again within 5 to 10 minutes and try it all over again.
If you still can't connect to the internet, it could be that your SSID or network password aren't functioning as expected. This could pose a security issue and you should either change it on your router or contact your provider in order to resolve it.
One reason your PS4 could be disconnecting is too many other devices vying for bandwidth on your WiFi network, leading to competition for bandwidth between them and your PS4. To resolve this, disconnect other devices or use a router that prioritizes gaming over streaming; or increase Internet speed or choose a 2.4GHz instead of 5GHz router if using an original model; however PS4 Slim and Pro models work on 5GHz networks just fine.