Recently, when I launch Spotify app from your computer desktop, it shows a long error message saying 'No internet connection detected. Spotify will automatically try to reconnection when it detects an internet connection (error code 4)'. I was so confused when encountered this situation in the first time as my internet connection is fine.
When I search 'Spotify no internet connection detected error code 4' in Spotify Community, I notice that I'm not alone since there are many people writing 'Spotify keeps going offline error code 4 constantly' issue. To fix the problem of Spotify error code 4 for me and others, I have collected top 5 best workarounds on fixing Spotify offline error code 4 in this article.
Method 1. How to Fix Spotify Error Code 4 through DNS
When you have met the issue that there is no internet connection on Spotify, the first thing you can do easily is to check your DNS server. Sometimes, Spotify app can't recognize your DNS service properly from ISP provider, which leading that Spotify internet error code 4 showed. To fix this issue, you'd better to switch from your ISO's to larger DNS services, such as Google DNS, OpenDNS, etc.
For Mac Users:
Step 1. Click the Apple > System Preferences to navigate to Network option and click it.
Step 2. In Network settings, please click the Built-In Ethernet to change the settings for an Ethernet connection or choose Airport for a wireless connection. And then hit on Advanced button.
Step 3. Touch the DNS tab an click the + button to replace any listed addresses with, or add, the Google IP addresses at the top of the list, like 18.104.22.168/22.214.171.124 for IPv4.
Step 4. Just confirm all settings by clicking the Apply > OK button. Now, you can relaunch Spotify app to see whether the Spotify offline error code 4 could be fixed well.
For Windows Users:
Step 1. In the bottom-right corner of the computer desktop, please right click on Network icon and select the Open Network and Sharing Center section.
Step 2. Under Connections, please click on the primary connection (either WiFi or Ethernet).
Step 3. You need to hit on the Properties option in the popup window, where you need to double-click on Internet Protocol Version 4 (TCP/Pv4) or Internet Protocol Version 6 (TCP/Pv6).
Step 4. After you have clicked the Use of the following DNS server addresses option, please type the DNS addresses in the boxes, such as Preferred DNS server: 126.96.36.199 or Alternate DNS server: 188.8.131.52.
Step 5. Click the OK button to confirm all settings, open Spotify app again and the Spotify error code 4 could disappear.
Method 2. How to Fix Error 4 on Spotify via Firewall
If you followed the first way, but still couldn't fix 'Spotify says no internet connection' issue, you can focus on Firewall settings now. When Spotify is unable to access to internet, it could be caused by that it's blocked by firewall settings on your computer. Just follow the below steps to solve it right now.
For Mac Users:
Step 1. Navigate to the 'System Preferences' and choose the 'Security & Privacy' > 'Firewall' button.
Step 2. Click the 'Lock to prevent further changes' button at the bottom-right corner and then hit on 'Turn On Firewall' > 'Firewall Options' tab, it will pop up a new window, in which please add Spotify to the whitelist to allow it incoming connections.
For Windows Users:
Step 1. Hit on the Shiled icon to launch the 'Windows Defender Security Center' window.
Step 2. Go to the 'Firewall & network protection' option to select 'Allow an app or feature through Windows firewall'.
Step 3. Under 'Change settings', you need to scroll down to discover Spotify option and mark the checkbox to allow it. If there is no Spotify, please click the 'Allow other apps' button to add Spotify to the firewall exception list.
Method 3. Fix Error Code 4 via Antivirus Software and Proxy Settings
Spotify is available in a wide variety of countries, like Americas, AustThere are two situations that could cause Spotify internet error code 4 when you have done some wrong settings, respectively blocking Spotify in antivirus software exception list and Proxy settings. You can try the following one-by-one steps to modify the settings. As for antivirus software, here, we will take NOD32 as example to show how it fix it.
Allow Spotify in Antivirus Software Exception List
Step 1. Just open the ESET Smart Security or ESET NOS32 Antivirus.
Step 2. Click the 'Advanced Setup' by pressing the F5 key to tap the 'Antivirus and antispyware' > 'Exclusions' > 'Add…' button.
Step 3. Browse to C:\Users\(Your Username)\AppData\Roaming\Spotify folder and Spotify.exe. And then click on 'OK' to save changes you set before.
Fix Spotify Error Code 4 via Proxy Settings
Step 1. Double click the icon of Spotify to launch it from your computer desktop and navigate to 'Settings' window.
Step 2. Please scroll down to the 'Show Advanced Settings' section and open it.
Step 3. Under the 'Proxy' option, you need to select 'Auto Detect' > 'HTTP' from the drop-down list. When all settings finish, simply press the 'Update Proxy' to confirm them.
Method 4. Back Up Spotify Music for Offline Listening - Ultimate Solution
If you have tired all methods that we mentioned above but still failed to resolve error code 4 on Spotify, the ultimate method is to download the whole Spotify music library offline so that you don't need to worry about the internet connection and even have no needs to launch Spotify app to listen to Spotify songs and playlists on your devices.
If you are using Spotify Premium subscription, there is a detailed tutorial to guide you on how to download Spotify songs to your computer offline. But as for Spotify free subscribers, you should get help from AudFree Spotify Music Downloader, an easy-to-use yet professional music downloading tool for Spotify that can download and convert Spotify music and playlists to MP3 without Premium account.
Step 1. There are two ways for you to add Spotify playlists to AudFree after you have launched this smart Spotify tool. You can drag and drop Spotify files to the main interface or copy and paste the URL of Spotify tracks to AudFree software.
Step 2. Navigate to the top right menu bar and select 'Preferences' > 'Convert' button to open setting window, where you can customize output format, bit rate, sample rate, etc.
Step 3. Now, just hit on the big 'Convert' button at the bottom-right corner, AudFree Spotify Music Downloader will download added Spotify tracks to MP3 offline and save them to destination folder on your computer.
With the assistance of this smart Spotify music downloader, you can fix 'Spotify error code 4' issue permanently. It's worth mentioning that now you can listen to Spotify files without internet and transfer downloaded Spotify music to any device and music player for offline listening without limit.
Do you have any other effective way on how to fix Spotify error code 4? If yes, just share your successful experience in the comment area.