How to Fix A DNS Server Cannot Be Used error on PS4 and PS5

Reconfiguring the DNS on your console should quickly fix this issue

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

ps4-dns-error
True gamers use the best gaming browser: Opera GXOpera GX is a special version of the famous Opera browser that is built specifically to fulfill gamer's needs. Packed with unique features, Opera GX will help you get the most out of gaming and browsing everyday:
  • CPU, RAM and Network limiter with hot tab killer
  • Integrated with Twitch, Discord, Instagram, Twitter and Messengers directly
  • Built-in sound controls and custom music
  • Custom color themes by Razer Chroma and force dark pages
  • Free VPN and Ad blocker
  • Download Opera GX

If you’re here, you’re most likely having issues with your DNS and your Playstation console. If you try to connect to the Internet on a PS4 or PS5 with incorrect DNS servers, you’re likely to get error messages, such as DNS error NW-31253-4, PNW-31254-5, NW-31251-2 (cannot connect to Wi-Fi), NW-31250-1, or NW-31247-7.

Before any complex solutions, restart your console and your router and check if the DNS settings are correct. Also, verify if your connection is stable.

How do I fix a DNS error on PS4 and PS5?

1. Manually configure DNS settings

  1. Power on your PS4 and go to Settings.
  2. Navigate to Network and choose Set Up Internet Connection.
  3. Choose an internet connection type between Wi-Fi and LAN.
  4. Connect your router or ethernet cable.
  5. Click on Custom setup.
  6. Change the IP Address Settings to Automatic.
  7. Go to the DNS Settings and change it to Manual.
    ps4-dns-error-manual-settings
  8. Enter the address of the default Google DNS servers – Primary: 8.8.8.8 and Secondary: 8.8.4.4.
  9. Hit the Next button.
  10. Select Automatic.
  11. Choose the Do Not Use option in your proxy server.
Note icon NOTE
In Step 8, you can also use other DNS servers. For example, Open DNS – Primary: 208.67.222.222Secondary: 208.67.220.220. Cloudflare DNS settings – Primary: 1.1.1.1Secondary: 1.0.0.1.

If the DNS error still appears on PS4 or PS5 after configuring the correct DNS server settings, then you need to reset your network settings. Follow the guide below carefully.

2. Reset your DNS settings

  1. Turn off the console.
  2. Disconnect the system from power as well as your router.
  3. Leave it in this state for 4 minutes.
  4. Boot the console into Safe Mode by pressing the Power button and holding it for 10 seconds.
  5. Connect your controller using a reliable USB cable.
  6. Click on Restore Default Settings.

Check if you’re still getting the NW-31253-4, NW-31254-5, NW-31250-1, and NW-31246-6 DNS errors.

Don’t worry, this method doesn’t delete your game data or media files. It only resets your console settings to their default values and fixes the DNS error stating that a DNS server cannot be used.

Manually configuring the DNS settings is PlayStation’s recommended fix for DNS errors on PS4 and PS5. Therefore, changing your DNS settings after resetting your console is bound to get rid of the annoying errors.

3. Disable the firewall and leave the console ports open

  1. Open your router’s admin panel or online interface. (Usually, all it takes is entering your router’s IP address in the URL bar from your browser).
  2. Use your assigned credentials to log in.
  3. Locate the Firewall section and disable it. (Note that the name of this option can vary, according to your specific router model or brand).
  4. If you only need to open the ports used by your console, look for the ports option instead and forward them to the IP address corresponding to your PlayStation console.

To obtain the IP address and other details that might come in handy such as DNS, subnet mask, and default Gateway:

  1. Open the Settings menu on your console.
  2. Go to Network.
  3. This time select View Connection Status instead of Set Up Internet Connection.
Note icon NOTE
These are the port numbers you need to open in order for the PSN servers to properly connect to the Internet:

➡️ TCP: 80, 443, 3478, 3479, 3480
➡️ UDP: 3478, 3479

Your console requires specific ports to properly communicate with dedicated servers from the PlayStation network.

If you own a router with a built-in firewall, the rules behind can end up blocking these ports and thus triggering the infamous DNS error on PS4 and PS5.

Why does my PlayStation console says that a DNS server cannot be used?

The reason for encountering these error messages is that you have misconfigured DNS settings. The consequence is grave enough not to be ignored.

With any of these errors from the NW-31253-4 error code and beyond, you won’t be able to make use of PlayStation’s online services. In this sense, it’s fair to say that error code NW-31253-4 is similar to Playstation’s network sign-in error.

So, what is a DNS error on PS4 or PS5 exactly? It’s a connectivity error that can arise due to misconfigured DNS settings or when your network changes and the system attempts to map your old configuration to the new networking settings.

Apply the solutions above when your system shows you the PS4 system error saying that the DNS server cannot be used.

With working DNS servers, you’ll be able to access all your PlayStation internet services with no issues.

More about the topics: PS4 errors

User forum

3 messages