Spotify Error Code 4: Get It Fixed with 5 Easy Ways

Posted by Adam Gorden on 07/12/2018 14:25:12 PM.

"Today when I launch the Spotify app, 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.' But my internet connection is fine. Any idea as to how to fix this error?"

fix spotify error code 4

Many Spotify users have had the same "error code 4" problem when using Spotify. It typically appears if there's something wrong with internet connection. But most of the time, the error occurs even when the internet connection works just perfectly. If you unfortunately get stuck with the error code 4 on Spotify, simply try these 5 most popular solutions to get it fixed quickly.

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

Method 1. Fix Spotify Error Code 4 through DNS

In most cases, the Spotify error code 4 is caused by DNS server problem. Specifically, sometimes Spotify won't recognize the DNS server from your ISP provider. Then it cannot load the internet resources as expected. In order to fix the error code 4, you are suggested to switch from your ISP's to Google DNS, OpenDNS, or other big DNS servers. The process of changing DNS server on Windows and Mac are different however.

For 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.

change dns on windows

For 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.

change dns on mac

Method 2. Change Firewall Settings to Fix Spotify Error Code 4

Sometimes, Spotify can't access the internet as it's blocked by your computer's firewall settings. To allow Spotify in firewall, you need to add Spotify to firewall exception list with the following steps.

For Windows:

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.

add spotify to firewall exception

For 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.

add spotify to firewall mac

Method 3. Allow Spotify in Antivirus Software Exception List

Like firewall, the anti-virus software on your computer could also block the startup of Spotify by mistake, for example, the NOD32 on Windows. So if you are using NOD32 anti-virus program and meet the error code 4 when starting Spotify, you should try the following steps to add Spotify app 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.

Method 4. Fix Error Code 4 on Spotify via Proxy Settings

spotify proxy settings

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

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.

Method 5. Ultimate Solution: Reinstall Spotify App & Back Up Spotify Playlists

Normally, the Spotify "error code 4" problem could be fixed with the above methods. But if unfortunately they all failed to resolve the error, you have to give the last try, that is, to uninstall and reinstall Spotify from your computer.

Before you removing Spotify app, you are suggested to make a backup of the whole Spotify music library in case there might be some unexpected error occurs. If you've subscribed to Spotify Premium, you can easily back up the Spotify music playlists by downloading them offline. But for free users of Spotify, to back up Spotify music offline, you'll need the help of TunesKit Spotify Music Downloader, an advanced Spotify downloading tool that can download and save Spotify songs as MP3 without Premium.

tuneskit spotify downloader for mac

With TunesKit Spotify Music Downloader, all Spotify users can easily download and convert Spotify OGG Vorbis files to common MP3, AAC, WAV, FLAC, and more. It can also keep the lossless audio quality as well as ID3 tags, including title, album, artist, artwork, track number, genre, etc. Thanks to this smart tool, you'll be able to ultimately fix the Spotify offline error code 4 problem.

Download Download

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

Step 1. First of all, launch TunesKit 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 TunesKit downloading window.

import spotify music to tuneskit

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

Download Download

Final Words

All these solutions are supposed to fix the "error code 4" issue on Spotify effectively. With the last method, you are able to solve the offline problem once and for all. Does any of them work for you? Or do you have better solution that is missing from this post? We'd like to hear your thoughts below.


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

Leave a comment
Home > Spotify > Best Solutions to Spotify Error Code 4


Safe & Clean

30 Days

Money Back

24/7 Customer



Free Upgrade