Fixes

Fixing the Spotify Error Code 4 [Complete Guide]

Spotify is one of the most cherished music playing applications on the market right now due to its great playlists and immaculate list of songs. However, quite recently, a lot of users have been getting the ‘Spotify Error Code 4: No internet connection detected. Spotify will automatically try to reconnect‘ on both their Mac or Windows computer. You should go through the following guide to completely get rid of this error on your computer.

spotify error code 4 display
Spotify Error Code 4

What causes Error Code 4 on Spotify?

After going through the repair strategies commonly used to fix this issue, we established that the following are some of the most common reasons that can trigger this error on your computer.

  • Firewall Blocking Spotify: In some cases, your Firewall might be blocking Spotify from making contact with its servers. It is best to temporarily disable your Firewall or let Spotify through by adding an exclusion to fix Spotify Error Code 4.
  • Antivirus Blocking Spotify: The error is also sometimes caused by the third-party antivirus installed on your system when it raises a false alarm and blocks Spotify from connecting to their servers. The Spotify Error Code 4 can be easily fixed by adding an exclusion or
  • Faulty Proxy settings in the Spotify app: If you haven’t properly configured your proxy settings on your computer, you might see the Spotify Error Code 4 on your screen. It is best to reconfigure these settings using the guide below.
  • Corrupted DNS cache: Also, the DNS cache that has been established either on your router’s or your computer’s end might’ve been corrupted due to which you are getting the Spotify Error Code 4 on your screen. it is best to refresh this cache to get rid of the error.
  • Corrupted Installation files of the Spotify app: It is also possible for your Spotify application to be corrupted either during installation or during usage. This corruption can in turn prevent you from utilizing the full functionality of the app and cause the Spotify Error Code 4 to spring up.

Now that you have gone through some of the most common reasons behind the occurrence of this issue, we will move on towards implementing the fixes.

Before you start:

  1. Sign out of your Spotify account and close all the windows on your computer.
  2. Take the power adapter of your router out of the socket and wait for it to completely shut down.
  3. Now detach all the power cords from your computer and shut it down and if you are using Spotify on your smartphone, power cycle it too.
  4. After waiting for a couple of minutes, reinsert the power adapter of the router and your computer back into the socket, start it and wait till your computer acquires complete network signals.
  5. Now launch the Spotify application on your computer and log back into your account to check if the issue persists.
  6. It is also recommended to inspect if the issue is at your end or at the server end. To do so, go to the Spotify down detector website and check if the Spotify servers are working properly.

Fixing the Spotify Error Code 4:

Solution 1: Switch to Google’s DNS

For Windows Users:

  1. Press the “Win + R” keys on the keyboard to open the Run box and search for “Control Panel”.
    Search Control panel to fix spotify error code 4
    Search Control panel
  2. From the top-right corner of the screen, set the “View by:” option to “Category” and click on “Network and Internet”.
    Click on Network and Internet
    Choose Network and Internet Option
  3. Now navigate to “Network and Sharing Center” and click on “Change Adapter Settings” from the left pane.
    Change Adapter Settings
    Change Adapter Settings
  4. Right-click on the Internet you are connected to and select Properties”.
  5. Now check the box parallel to “Internet Protocol Version 4 (TCP/IPv4)” and click on “Properties”.
    Internet Protocol Version 4 (TCP/IPv4)
    Internet Protocol Version 4 (TCP/IPv4)
  6. Now check the box parallel to “Use the following DNS server addresses” and set the Preferred DNS” and Alternate DNS” as 8.8.8.8″ and  8.8.4.4″ respectively.
    Use the following DNS server addresses to fix spotify error code 4
    Set DNS server addresses
  7. Now apply the changes and check whether the spotify error code 4 is resolved.

For Mac Users:

  1. Click on the “Apple Logo” at the top-left of the screen and select “System Preferences”.
    Click on System preferences to get rid of spotify error code 4
    Choose System Preferences
  2. Now click on the “Network” icon to open the network settings.
    Open Network settings
    Open Network Settings
  3. Click on the “Advanced” button located at the bottom-right of the screen.
    Choose advanced button to get rid of spotify error code 4
    Choose Advanced Button
  4. Navigate to the “DNS” tab located at the top of the screen and click on the “+” button to replace or add a new IP address.
    Add DNS
    Adding DNS
  5. Now type the following IPv4 IP addresses one by one and click on the “OK” button.
    8.8.8.8
    8.8.4.4
  6. Now save the changes and restart your Spotify app to check whether error code 4 spotify is rectified.

Solution 2: Pass the Spotify app through Firewall

For Windows Users:

  1. Press the “Win + R” keys on the keyboard to open the Run box and search for “Control Panel”.
    Search Control panel
    Search Control panel
  2. From the top-right corner of the screen, set the “View by:” option to “Large icons” and click on “Windows Defender Firewall”.
    Click on Windows Defender Firewall to get rid of spotify error code 4
    Choose Windows Defender Firewall Option
  3. From the left pane, click on “Allow app or feature through Windows Defender Firewall”.
    Allow app or feature through Windows Defender Firewall
    Allow an app through Windows Defender Firewall
  4. Now click on change settings and check both the “Private” and “Public” boxes parallel to Spotify entries.
    Let the app pass through Firewall
    Let the app through Firewall
  5. Now apply the settings and hopefully, the spotify error code 4 would be resolved.

For Mac Users:

  1. Click on the “Apple Logo” at the top-left of the screen and select “System Preferences”.
    Click on system preferences
    Choose System Preferences
  2. Navigate to “Security & Privacy” and choose “Firewall”. Now click on the “Lock” button at the bottom-left of the screen and enter your credentials to tweak firewall settings.
    Choose firewall to fix spotify error code 4
    Click on Firewall
  3. Now select “Advanced” and click on the “+” button to immediately go to the “Applications” folder.
    Click on Advanced
    Choose the Advanced option
  4. Select the “Spotify” app and click on the “+” button to whitelist Spotify in your Mac’s firewall.
  5. Now click on the “OK” button to save the changes and check if the Spotify Error Code 4 is rectified.

Solution 3: Tweak Anti-Virus Settings

  1. From the home screen of your anti-virus software, navigate to the “Settings”.
    Choose Settings
    Click on Settings
  2. Now navigate to the “General” tab and click on the “Exceptions” section.
    Click on Exceptions
    Choose Exceptions
  3. Now add the path to the “Spotify.exe” file to add it as an exception to the anti-virus.
    Add the path to fix spotify error code 4
    Adding the path
  4. After whitelisting Spotify in your antivirus software, most probably the error would be resolved.

Note: If you have installed “NOD32” or “McAfee “ antivirus software on your computer then there is a large probability that you would encounter spotify error code 4. Hence, in order to avoid this error, uninstall these Softwares from your computer and check whether the error still persists.

Solution 4: Modify Proxy settings in the Spotify app

  1. Launch the “Spotify” desktop client on your computer and navigate to its “Settings”.
  2. When in the settings window, scroll down to locate the “Show Advanced Settings” option and click on it.
  3. Set the Proxy Type to “HTTPS” under the Proxy section and click on the “Update Proxy” button to apply the changes.
    Modify Proxy settings in the Spotify app
    Modifying Proxy settings

Solution 5: Disable your anti-virus software

  1. Click on the “^” icon located on your taskbar and right-click on your Avast icon.
  2. Now hover over “Avast shield control” and select “Disable permanently”.
    Disable permanently
    Choose Disable permanently Option

Solution 6: Flush DNS cache

  1. Click on the “Search” button located on the taskbar and search for “Command Prompt”.
  2. Now right-click on “Command Prompt” and select “Run as administrator”.
    Run as administrator"
    Run cmd as administrator”
  3. Now type the following commands in the command window one by one and hit the “Enter” key on the keyboard to execute them:
    ipconfig /flushdns
    ipconfig /registerdns
    ipconfig /release
    ipconfig /renew
    Flush DNS
    Flushing DNS

Solution 7: Clear Spotify cache on Mobile

  1. Open your mobile’s “Settings” and tap on “Apps”.
    Choose Apps to fix spotify error code 4
    Click on Apps
  2. Now scroll down and tap on “Spotify” and then navigate to “Storage”.
    Click on Storage
    Choose Storage option
  3. Tap on the “Clear cache” button to clear the cache and check if the error is terminated.
    Clear cache
    Clearing cache

Solution 8: Backup and then Reinstall Spotify

Backup your data on PC:

  1. If you are a “Spotify Premium” subscriber, then you can easily download all your songs in the offline mode.
  2. If you use Spotify for free, then launch your favorite browser and download the TunesKit Spotify Music Downloader.
  3. Double-click on the downloaded setup files and follow the on-screen instructions to install the tool.
  4.  Now launch the app, select your music files, set the download location, and click on the “Convert” button to make a backup your music in MP3.

Reinstall Spotify on PC:

  1. Press “Windows key + R” from the keyboard to open the run box and search for “appwiz.cpl”.
    appwiz.cpl
    Running the command
  2. Now locate Spotify from the list of Softwares installed on your computer, right-click on it and select “Uninstall”.
    Uninstall Spotify to get rid of spotify error code 4
    Uninstalling Spotify
  3. Now launch a browser and download Spotify from here.

Reinstall Spotify on the smartphone:

  1. Open “Play Store” on your smartphone and search for “Spotify”.
    Search Spotify
    Search for Spotify
  2. Now click on the “Uninstall” button to uninstall the application first.
  3. When the app has been uninstalled, an “Install” button will appear on the screen. Tap that button to reinstall Spotify on your phone and hopefully the spotify error code 4 would be rectified.

If you are still unable to fix this issue, you can contact us for any further assistance.

Alan Adams

Alan is a hardcore tech enthusiast that lives and breathes tech. When he is not indulged in playing the latest video games, he helps users with technical problems that they might run into. Alan is a Computer Science Graduate with a Masters in Data Science.
Back to top button