sodcalculator

10 Tech How-To

Fix PlayStation 4 Error NW: Causes & Solutions

Guide 10-45248 · Updated · Step by step

If you see error code NW-31295-0 or similar “NW” errors on your PlayStation 4, it means the console can’t connect to the PlayStation Network or your local network. This guide explains the most common causes and walks you through step-by-step fixes, starting with the simplest and moving to more advanced solutions.

What Do PlayStation 4 “NW” Errors Mean?

“NW” is Sony’s prefix for network-related error codes on the PS4. They appear when the console fails to establish or maintain a connection to the internet, the PlayStation Network (PSN), or another player’s console. Common codes include NW-31295-0, NW-31456-9, NW-31297-2, and NW-31175-4. Each number points to a specific failure point, but the fixes overlap heavily. In most cases, the issue is not with PSN servers but with your local network, router settings, or the PS4’s network cache.

Quick Fixes to Try First

Before diving into router settings, try these simple steps. They resolve a surprising number of NW errors.

  • Restart your PS4 completely: Hold the power button until you hear two beeps. This fully powers down the console, not just rest mode. Unplug it for 30 seconds, then plug it back in and restart.
  • Restart your router and modem: Unplug both, wait at least 60 seconds, then plug them back in. Let them fully boot before turning on the PS4.
  • Check PSN server status: Visit the official PlayStation Network Service Status page on your phone or computer. If PSN is down, you just have to wait.
  • Test the connection on your PS4: Go to Settings > Network > Test Internet Connection. Note whether it fails at “Obtain IP address,” “Internet connection,” or “PlayStation Network.” This tells you where the problem lies.

Rebuild the PS4 Database and Clear Cache

Corrupted cache data can interfere with network functions. Rebuilding the database is a safe maintenance step that often clears odd errors.

  1. Turn off your PS4 completely.
  2. Press and hold the power button until you hear two beeps (about 7 seconds). This boots into Safe Mode.
  3. Connect a controller with a USB cable and press the PS button.
  4. Select Option 5: Rebuild Database. This scans the drive and reorganizes data. It can take from a few minutes to a few hours depending on your drive size and data amount.
  5. Once done, the console restarts normally. Test your network connection again.

This does not delete your games or saves. It only cleans up the file structure.

Adjust DNS Settings on the PS4

Your internet service provider’s DNS servers can be slow or unreliable. Switching to a public DNS like Google’s (8.8.8.8 and 8.8.4.4) or Cloudflare’s (1.1.1.1 and 1.0.0.1) often resolves NW errors that occur after the IP is obtained.

  1. Go to Settings > Network > Set Up Internet Connection.
  2. Choose Use Wi-Fi or Use a LAN Cable (whichever you use).
  3. Select Custom.
  4. Keep IP Address Settings as Automatic.
  5. Set DHCP Host Name to Do Not Specify.
  6. Set DNS Settings to Manual.
  7. Enter 8.8.8.8 for Primary DNS and 8.8.4.4 for Secondary DNS (or 1.1.1.1 and 1.0.0.1).
  8. Set MTU Settings to Automatic.
  9. Set Proxy Server to Do Not Use.
  10. Test the connection.

If this works, the problem was likely your ISP’s DNS. You can also change DNS on your router to benefit all devices.

Port Forwarding and UPnP for Strict NAT

NW errors often come with a “NAT Type” message (Type 3 is strict, Type 2 is moderate, Type 1 is open). If your NAT is strict, the PS4 can’t communicate with other players or PSN properly. Enabling UPnP (Universal Plug and Play) on your router is the easiest fix. Log into your router’s admin page (usually via a browser at an address like 192.168.1.1 or 192.168.0.1) and find the UPnP setting—often under “Advanced” or “Network.” Turn it on and restart both the router and PS4.

If UPnP is not available or doesn’t work, you can manually forward the following ports to your PS4’s IP address:

  • TCP: 80, 443, 3478, 3479, 3480
  • UDP: 3478, 3479, 3480

To do this, you need to set a static IP address for your PS4 (in the PS4’s network settings, set IP Address to Manual and enter an unused IP like 192.168.1.100). Then, in your router’s port forwarding section, create rules for each port, pointing to that IP. Restart everything afterward.

When to Use a Wired Connection

Wi-Fi on the PS4 is notoriously weak, especially on older models (CUH-1000 and CUH-2000). If you’re getting NW errors intermittently, a wired Ethernet connection is the most reliable fix. Simply plug a LAN cable from your router directly into the PS4. The console will automatically switch to wired. If running a cable is impractical, consider a powerline adapter kit that uses your home’s electrical wiring to carry internet—it’s more stable than Wi-Fi.

If you must use Wi-Fi, try changing the wireless band on your router to 2.4 GHz (instead of 5 GHz) because it has better range through walls. Also, ensure the PS4’s Wi-Fi antenna isn’t blocked by metal objects or the console isn’t inside a cabinet.

Check Router Security and Firewall Settings

Some routers have advanced security features that block game traffic. Temporarily disable the firewall or “SPI” (Stateful Packet Inspection) to see if that clears the error. If it does, re-enable it and instead add the PS4’s IP to the router’s DMZ (Demilitarized Zone). DMZ exposes the PS4 to the internet without firewall restrictions—it’s safe enough for a game console, but only do this if you understand the risk. Also, make sure your router’s firmware is updated. Check the router manufacturer’s website for instructions.

Frequently Asked Questions

Why does my PS4 say NW-31295-0 even though other devices work?

This specific error usually means the PS4 cannot reach PSN servers, even though your internet works. It’s often caused by a corrupted network cache or DNS issue. Try the full restart, DNS change, and rebuilding the database in that order. If it persists, check if PSN is down for maintenance.

Will changing my DNS affect my internet speed?

DNS resolution is like looking up a phone number—it only happens when you connect to a new site. It doesn’t affect download or upload speeds. A faster DNS can make websites load slightly quicker, but your overall bandwidth stays the same.

Is it safe to put my PS4 in the DMZ?

DMZ forwards all incoming traffic to your PS4, bypassing the router’s firewall. While the PS4 is a low-risk target, it’s not completely risk-free. Only use DMZ temporarily to test if your router’s firewall is causing the NW error. If it solves the problem, consider port forwarding instead, which is more secure.

What does NAT Type 3 mean?

NAT Type 3 (strict) means your router is heavily restricting incoming connections. You can still browse the internet, but some multiplayer features, voice chat, and game invites may fail. UPnP or port forwarding usually changes it to Type 2 (moderate), which is ideal for gaming.

My PS4 is connected but says “PlayStation Network is not available.” What now?

This indicates your console has internet access but cannot reach PSN. First, check the official PSN status page. If it’s online, the issue is likely your ISP’s routing to PSN servers. Try changing your DNS, or restarting your router to get a new IP address. If you’re using a VPN on your router, disable it—PSN blocks many VPN IPs.

Will initializing my PS4 fix NW errors?

Initialization (full factory reset) is a last resort. It deletes all accounts, games, and settings. It can fix errors caused by corrupted system software, but it’s rarely needed for NW errors. Try every other step first. If you do initialize, back up your saves to the cloud or a USB drive.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →