PS4 error code
PS4 NW-31246-6 Error: DNS Settings Invalid, How to Fix
Try this first: Sony’s first step is to restart the PS4 to refresh the network connection.

What NW-31246-6 means
PlayStation Support says: “DNS settings are invalid. If you set IP Address Settings or DNS Settings to Manual, make sure the Primary DNS and Secondary DNS are set correctly. Otherwise the system might not have obtained an IP address, or the DNS settings may have been changed.” (official page)
NW-31246-6 is a PS4 network error that Sony says means the DNS settings are invalid. Restart the PS4 to refresh the connection and run Test Internet Connection. If you entered DNS manually, check the Primary and Secondary DNS. If you didn’t, Sony says the PS4 may not have an IP address, so contact your ISP. DNS, the Domain Name System, translates names into IP addresses, as Sony’s network terms list explains. NW-31246-6 means the PS4’s DNS settings aren’t valid, so it can’t look up the servers it needs. Sony splits the code into two cases. If you chose Manual for IP Address Settings or DNS Settings when you set up the connection, check that both DNS entries are correct. Manual settings are under Custom when you set up a wired or Wi-Fi connection on PS4. Sony advises choosing Easy, or asking your ISP or network administrator, if you’re not familiar with these settings. If you never changed them, Sony says the PS4 might not have obtained an IP address, or the DNS settings may have been changed, and sends you to your ISP. Sony’s page doesn’t list specific DNS servers to use and doesn’t mention router resets for this code, so we haven’t added either. If the PS4 can’t join your Wi-Fi at all, NW-31297-2 is a different code about the Wi-Fi password or a busy network.
Match what you see
Where NW-31246-6 appears tells you where to start. Find the row closest to your situation, then jump to that step.
| What you see | Most likely cause | Start at |
|---|---|---|
| NW-31246-6 appears while connecting | The DNS settings are invalid | Restart the PS4 to refresh the connection |
| You entered DNS addresses manually | The Primary or Secondary DNS may be wrong | Check both entries in a Custom connection setup |
| You used Easy setup and never changed DNS | The PS4 may not have an IP address, or DNS was changed | Contact your internet service provider |
| You’re not sure what to enter | Custom network settings need details from your network | Set up the connection again with Easy |
Likely causes
- The PS4’s DNS settings are invalid (Sony’s stated meaning of NW-31246-6).
- If you chose Manual for IP Address Settings or DNS Settings, the Primary DNS or Secondary DNS may be set incorrectly.
- Otherwise, Sony says the PS4 might not have obtained an IP address, or the DNS settings may have been changed.
How to fix NW-31246-6, easiest first
- Restart the PS4
Sony’s first step is to restart the PS4 to refresh the network connection. - Run Test Internet Connection
Go to Settings > Network > Test Internet Connection and check whether the error comes back. - Check manual DNS entries
If you chose Manual for IP Address Settings or DNS Settings when you set up the connection, make sure the Primary DNS and Secondary DNS are set correctly. To change them, go to Settings > Network > Set Up Internet Connection, choose Wi-Fi or a LAN cable, then select Custom. - Not sure? Set the connection up with Easy
Sony’s connection guide says to select Easy, or to ask your ISP or network administrator, if you’re not familiar with the Custom settings. Go to Settings > Network > Set Up Internet Connection, choose Use Wi-Fi or Use a LAN Cable, then Easy. Choose the right network and password; if that part fails, see NW-31297-2. - Contact your internet service provider
If you didn’t set anything manually, Sony says the PS4 may not have obtained an IP address, or the DNS settings may have been changed. It says to contact your ISP for help. If the connection works but a server refuses it, WS-37397-9 is a different code.
| Step | What to do | Source |
|---|---|---|
| 1 | Restart the PS4 | Official |
| 2 | Run Test Internet Connection | Official |
| 3 | Check manual DNS entries | Official |
| 4 | Not sure? Set the connection up with Easy | Official |
| 5 | Contact your internet service provider | Official |
When to contact support
Sony sends NW-31246-6 to your internet service provider when the settings weren’t entered manually, because the console may not have been given an IP address. If your ISP finds no problem, contact PlayStation Support from Sony’s error page with the code and your Test Internet Connection result. For wider PS4 network help, see our PS4 troubleshooting guide.
NW-31246-6 FAQ
What is error code NW-31246-6?
Sony says NW-31246-6 means the DNS settings on your PS4 are invalid. Either a manually entered DNS address is wrong, or the PS4 didn’t get an IP address or its DNS settings were changed.
How do I fix NW-31246-6 on PS4?
Restart the PS4 and run Settings > Network > Test Internet Connection. If you entered DNS manually, check the Primary and Secondary DNS. If you didn’t, Sony says to contact your internet service provider.
Sources
Related codes and how they differ
- NW-31297-2: PS4 can’t join the Wi-Fi network: a wrong Wi-Fi password or a busy network, not DNS.
- NW-31201-7: PS4 could not connect to the network, with server and network-load checks.
- WS-37397-9: The connection works but Sony has blocked the IP address; a different fix path.
- PS4 troubleshooting guide: Wider PS4 network setup and connection fixes.
PS4 troubleshooting guide · All PS4 codes · Error code directory