Spotify Error Code 4: How to Fix It with 6 Ways

Updated by Matt Smith on May 26, 2021 4:25 PM.

"Today when I launch Spotify, it keeps going on and offline constantly with an error code 4: 'No internet connection detected. Spotify will automatically reconnect when it detects an internet connection.' In fact, my internet connection is fine. Any idea as to how to fix Spotify Error Code 4?"

fix spotify error code 4

Many Spotify users have met the same problem – Spotify Error Code 4 when using Spotify to listen to music. It typically appears if there's something wrong with the internet connection. But most of the time, the error occurs even when the internet connection works just perfectly. If you unfortunately get stuck with this error on Spotify, simply try these popular solutions introduced in this post. Let's get it fixed quickly now.

Part 1. Spotify Error Code 4: No Internet Connection
Part 2. 5 Solutions to Fix Spotify Offline Error Code 4
Part 3. Ultimate Method to Fix Error Code 4 Spotify [Hot]

Part 1. Spotify No Internet Connection Error Code 4

Spotify is a digital music service that lets you to access millions of songs. While using Spotify to listen to music, you may encounter some error codes like code 3, code 17, and others. But Spotify Error Code 4 is the most common. If you want to fix this error, just figure out what is Spotify Error Code 4 and what causes it first.

What is Spotify Error Code 4?

Error Code 4 is one of the most common problems that Spotify users might encounter while launch Spotify on the computer. Once it appears, there will be an error message displaying on Spotify, telling you "Not internet connection detected." It's used to remind the users to check the internet accessibility in order to run Spotify properly.

What causes Spotify Error Code 4?

Spotify desktop users often find the error code when using Spotify. However, mobile users won't be given an error message. There are all kinds of reasons why you'd meet this error, from incorrect DNS settings or broken internet connection to antivirus application. Also, Spotify itself would cause the error.

Part 2. 5 Solutions to Fix Spotify Internet Connection Error 4

Now you've known the most common cause of Spotify Error Code 4. In this part, we'll introduce 5 solutions to help you fix error code 4 on Spotify. Then you can try these solutions below to easily resolve this problem.

      Solution 1. Change IPv4 DNS Settings
      Solution 2. Configure Firewall Settings
      Solution 3. Disable Antivirus Software
      Solution 4. Adjust Spotify Proxy Settings
      Solution 5. Uninstall and Reinstall Spotify

Solution 1: Fix Spotify Error Code 4 through DNS

In most cases, Spotify Error Code 4 is caused by DNS server problem. Specially, sometimes Spotify won't recognize the DNS server from your ISP provider. Then it cannot load the internet resources as expected. To fix the error code 4, just switch the original ISP provider to Google DNS, OpenDNS, or other DNS servers. Follow the below steps on Window and Mac.

For Windows:

change dns on windows

Step 1. Right click on network icon in the taskbar and choose "Open Network and Sharing Center" option.

Step 2. Click the primary network connection (WiFi or Ethernet) under "Connections".

Step 3. Click on "Properties", then double-click on "Internet Protocol Version 4 (TCP/IPv4)". If you using IPv6, you should choose "Internet Protocal Version 6 (TCP/IPv6)" instead.

Step 4. Tick the option of 'Use the following DNS server addresses" and input the DNS addresses like below:

Step 5. Press "OK" to apply the changes. Then relaunch Spotify to verify whether the Error Code 4 issue is fixed.

For Mac:

change dns on mac

Step 1. Go to "System Preferences" and click "Network".

Step 2. In "Network" settings, click on "Advanced..." and then "DNS".

Step 3. In "DNS Servers" section, click "+" button to replace any listed addresses with, or add, the Google IP addresses at the top of the list:

Step 4. Click "OK" to confirm. Reboot Spotify app and the Spotify error code 4 issue should be addressed.

Solution 2: Change Firewall Settings to Fix Spotify Error Code 4

Sometimes, Spotify cannot access the internet as it's blocked by your computer's firewall settings. To make sure that Spotify is allowed through the firewall, you need to add Spotify to firewall exception list with the following steps on Windows and Mac.

For Windows:

add spotify to firewall exception

Step 1. Open "Windows Defender Security Center" from the taskbar by clicking the Shield icon.

Step 2. Click on "Firewall & Network Protection" and then "Allow An App or Feature through Windows Firewall".

Step 3. Click "Change Settings" button and scroll down to find "Spotify.exe". Tick the checkbox if it's not ticked yet. If you can't find Spotify app there, you should click "Allow Other Apps" button to find it from "C:\Users\(Your Username)\AppData\Roaming\Spotify folder" and add it to the firewall exception list.

Step 4. Click "OK"/"Apply" to apply the modifications.

For Mac:

add spotify to firewall mac

Step 1. Navigate to "System Preferences" and click "Security & Privacy".

Step 2. Choose "Firewall" option and click the lock icon at bottom left. Input your administrator password to unlock it so that you can make changes to firewall settings.

Step 3. Click "Advanced" and then "+" button. You'll be directed to the "Applications" folder where you can select Spotify app. Then click "Add" button to allow incoming connections from Spotify on Mac.

Step 4. Click "OK" to apply the changes.

Solution 3: Disable Antivirus Software to Fix Spotify Error Code 4

Like firewall, the antivirus software on your computer could also block the startup of Spotify by mistake, such as the NOD32 on Windows. So, if you are using the antivirus software like NOD32, then you would meet the error code 4 when starting Spotify. Just try the following steps to add Spotify to exception list of NOD32.

Step 1. Open ESET Smart Security or ESET NOD32 Antivirus.

Step 2. Activate "Advanced Setup" window. Then click "Antivirus and antispyware" > "Exclusions" > "Add... ".

Step 3. Browse "C:\Users\(Your Username)\AppData\Roaming\Spotify" and find "Spotify.exe". Click "OK" to save the changes.

Solution 4: Fix Error Code 4 on Spotify via Proxy Settings

To fix the issue of Spotify Error Code 4, you can also simply modify the Proxy settings with Spotify in 3 steps only. Here's the tutorial.

spotify proxy settings

Step 1. Launch Spotify desktop client on your computer. Go to "Settings" window.

Step 2. Scroll down to find "Show Advanced Settings" button and click on it.

Step 3. In "Proxy" settings, click "Auto Detect" and choose "HTTP" from the drop-down list. Click "Update Proxy" to apply the modification.

Solution 5: Uninstall and Reinstall Spotify to Fix Error Code 4

If you cannot find out the exact problem causing the error code 4, you could first uninstall Spotify on your computer, then try to install it again.

Step 1. Delete the Spotify app from your computer.

Step 2. Install Spotify from the official website of Spotify.

Step 3. Launch Spotify on your computer then log into your Spotify account.

Part 3. Ultimate Method to Fix Spotify Error Code 4 Windows 10 & Mac

Normally, the issue of Spotify Error Code 4 could be fixed with the above methods. However, this is very frustrating after you've tried the aforementioned solutions to no avail. If they all failed to resolve the error, you have to give the last try, that is, to use a Spotify music downloader called ViWizard Spotify Music Converter.

When Spotify is download, users can still listen to their offline songs in the music library. But this only allows those Premium users to download music or playlists then they can continue to playing Spotify music by way of utilizing their downloads. So, in this case, ViWizard Spotify Music Converter could be a good helper to enable you to play offline music libraries.

With ViWizard Spotify Music Converter, all Spotify users can download and convert Spotify music to unprotected audio formats like MP3, AAC, and more. It can keep the lossless audio quality, as well as, ID3 tags including title, artist, album, artwork, and more. Thanks to this smart tool, you'll be able to ultimately fix Spotify offline error code 4 on Windows and Mac.

spotify music converter

Key Features of ViWizard Spotify Music Converter

2,000,000+ Downloads
Download Download

Now let's get started to download Spotify music playlist as MP3 for offline listening with ViWizard Spotify Music Downloader.

Step 1. First of all, launch ViWizard Spotify Converter. Wait for a few seconds until it loads Spotify app. Then find the Spotify songs or playlists from Spotify store. Drag the title to ViWizard downloading window.

import spotify music to ViWizard

Step 2. Click "Preferences" from top menu. Under "Convert" section, set output profile by selecting format, channel, bit rate and sample rate.

set output

Step 3. Now you can start to download Spotify songs offline as MP3 or other formats by clicking "Convert" button. After conversion, you'll find the downloaded songs from history folder.

start downloading spotify music

Final Words

All the above solutions are supposed to fix Spotify Error Code 4 effectively. With the help of ViWizard Spotify Music Converter, you are able to solve the offline problem once and for all. Does any of them work for you? Or do you have a better solution that is missing from this post? Just leave your answer in the comments and we'd like to hear your thoughts below.

Download Download

is an amateur writer engaged in ViWizard in 2013. He is a movie lover who write a lot of movie reviews for many websites and blogs.

Leave a comment
Home > Spotify > Spotify Error Code 4: How to Fix It with 6 Ways