A PS4 might not stay connected to the WIFI mainly due to the following:
Perform a Connection Test of WiFi on the PS4
A temporary glitch of the PS4 communication modules might be causing the WiFi disconnection issue. Here, performing a connection test of the WiFi on the PS4 may clear the glitch and thus solve the problem. If that did not work, check if the PS4 works fine with another network (like the hotspot of your phone). Also, make sure no electromagnetic interference (Microwave, etc.) is causing the issue. If you are encountering the WIFI issue with a particular game (like Ghost of Tsushima), then make sure it is not a false notification as some games are reported to throw the disconnection error while the console is still connected to the Internet.
Perform a Cold Restart of the PS4 and Router
The PS4 might show the WiFi disconnection issue due to a temporary glitch of the router/PS4 communication modules. Here, performing a cold restart of the PS4 and router may solve the problem. If that did not work, make sure the WIFI is working fine on all other devices.
Update the Firmware of the PS4 to the Latest Build
The PS4 might show the WiFi disconnecting issue if the firmware of the PS4 is outdated as the firmware may have become incompatible with the networking device. Here, updating the firmware of the PS4 to the latest build may stop the PS4 from disconnecting from the WIFI.
Edit the DNS Settings of the PS4
The WiFi disconnection issue could be a result of an improper configuration of the DNS settings of PS4 as the router might be closing the PS4 connection due to no response from the DNS server. In such a case, properly configuring the DNS settings of the PS4 might solve the problem.
Reset the PS4 Settings to the Defaults
The WiFi disconnecting issue can also be caused by the improper configuration of the PS4 settings and resetting the same to the defaults may solve the problem. Keep in mind this step will not harm or delete the content (apps, games, videos, screenshots, etc.) on the console’s storage but some saved games state might be affected.
Rebuild the Database of the PS4
If the current data table of the PS4 is not optimal or overloaded, then the PS4 console might show the WiFi disconnecting issue at hand. In such a case, rebuilding the database of the PS4 may solve the problem as the system scans the storage drive and create a fresh database of all the system contents. Keep in mind that rebuilding the database is a safe process and the data on the console is not deleted except the corrupt data files (which you technically have already lost).
Edit the Router Settings
The WiFi disconnecting issue could be a result of the misconfiguration of the router settings. These settings might include outdated router firmware, dual-band (2.4GHz or 5GHz) WiFi, router’s firewall, etc. In such a scenario, editing the router’s settings might solve the WiFi disconnecting issue. Keep in mind that the steps mentioned below may differ for some users but the general guidelines will be the same.
Disable the Network’s Second Band
If you are one of those users who are bound to use both bands on the router, then you may force the PS4 to use a single band (either 2.4 or 5). If the issue persists, then check if using a different channel on the band clears out the error.
Disable Self-Organizing Network (SON) in the Router Settings
Disable the Router Firewall
Warning: Proceed at your own risk as editing/disabling the router firewall may expose your network/data to threats.
Enable UPNP in the Router Settings
If the issue is still there, then make sure that the required ports for the PS4 are properly forwarded in the router settings and check if the WIFI issue is resolved.
Update the Router/ Extender Firmware
For some routers, you may have to manually install the firmware update of the router.
Reset Router to the Factory Defaults
If the issue is still there, then check if giving the PS4 a static/manual IP in the router settings and putting it in the DMZ (strictly not recommended) clears out the issue.
Initialize the PS4 Console to Set it to the Factory Defaults
If none of the above did the trick for you, then most probably, the corrupt firmware of the PS4 console is causing the issue, and initializing the PS4 console (which will reset the console to the factory defaults) may solve the problem. Before proceeding, make sure to back up the essential data and settings as everything on the console will be wiped clean. Also, make sure the console does not lose power during the initialization process. If the issue persists, check if using a network extender/WIFI to LAN adapter solves the problem, or if possible, using an ethernet cable clears out the issue. If you are bound to use WIFI, then you have to try another router to solve the problem.
Fix: USB Keeps Connecting and Disconnecting on Windows 10How to Fix Discord Keeps Disconnecting and Reconnecting?iPhone Hotspot Keeps Disconnecting? Here’s How to FixHow To Fix WiFi keeps Disconnecting On Windows?