[Solved] How To Eliminate Spotify Error Code 4

While using Spotify’s music streaming services, users can encounter error code 4. This issue can occur if there is any problem with the Internet connectivity

Also, you can get Spotify error code 4 while launching the application on your computer. If the program cannot communicate with the Spotify server, then this error can crop up.

Further, if the firewall on the device blocks the connectivity to the Spotify website, you can get this problem. Moreover, if the proxy settings on Spotify are not properly configured, you can still experience it. 

How to Fix Spotify Error Code 4?

To resolve the error code 4 on the Spotify application, you can apply the following solutions.

Alter Windows Defender Firewall Settings

If the Windows Defender Firewall blocks the access to the Spotify application, you can encounter this issue. Now, the only solution to fix this issue is to change the settings of the Windows Defender Firewall. 

  • First, go to the right corner of the taskbar and locate the network icon. After that, right-click on that icon and choose the ‘Open Network and Sharing Center’ option.
  • As soon as you click on it, a new ‘Networking and Sharing Center’ window will come up. Now, go to the bottom left corner and choose the ‘Windows Defender Firewall’ link.
  • A new ‘Windows Defender Firewall’ window will come up. Here, you have to select ‘Allow a program or feature through Windows Defender Firewall’.
  • From  ‘Allowed Programs’, choose the ‘Change settings’ option. Then, find ‘Spotify.exe’ and put a checkmark on both the ‘Private’ and ‘Public’ options.

Note: If you cannot find the ‘Spotify’ file on the list, tap the ‘Allow Other Apps’ button. After that, follow the path – “C:\Users\(Username)\AppData\Roaming\Spotify” to add the ‘Spotify’ application on the firewall exception list.

Now, to confirm the alterations in the Firewall’s settings, click the ‘OK’ button.

Modify DNS Settings 

If the Internet connection and/or the DNS server has some problems, you can experience the Spotify error code 4. So, to get rid of this problem, change the DNS settings provided by ISP to the public DNS settings. To apply this solution, follow these steps.

  • First, tap on the combination of ‘Windows + R’ keys together and it will open a new  ‘Run’ dialog box.
  • Type “ncpa.cpl” and click the ‘OK’ button to launch the ‘Network and Sharing Center’ within the ‘Control Panel’ window.
  • Go to the left panel and choose the ‘Change adapter settings’ link. As soon as you do that, a new ‘Network Connections’ window will appear.
  • Here, double-click on the currently active network adapter. After that, a ‘Status’ dialog box will come up, where you have to select the ‘Properties’ button.
  • Next, locate and right-click on the ‘Internet Protocol Version 4 (TCP/IPv4)’ option from the list. Then, choose the ‘Properties’ option.
  • From the ‘General’ tab, choose the ‘Use the following DNS server addresses:’ radio button.
  • Set the following addresses – “” and “” for the “Preferred DNS server” and “Alternate DNS server” respectively.

At last, put a checkmark in the ‘Validate settings upon exit” option and click on the ‘OK’ button.

Change Spotify’s Proxy Settings

Sometimes, when the proxy settings of the Spotify application are not set correctly, you can face this glitch. Thus, the best method to resolve this problem is to alter the proxy settings of the Spotify application. 

First, launch the Spotify application by double-clicking on the icon. Now, locate the ‘Settings’ button and go to the ‘Proxy’ section. Here, choose the correct ‘Proxy type’ from the drop-down list.

Apply the changes to Spotify’s proxy settings and check whether error code 4 persists.

Re-install Spotify Application

If none of the methods discussed above can rectify this issue, remove the Spotify application and then reinstall it. To do it easily on Windows 10, follow the below steps.

  • First, press the ‘Cortana’ logo to open the default search section. Inside that section, type ‘control panel’ and a new window ‘Control Panel’ will come up. 
  • Choose the ‘Programs’ and go to the ‘Programs and Features’ option. From the list, select the ‘Spotify’ application. Next, right-click on it and select the ‘Uninstall’ option.
  • A new uninstaller window for the Spotify program will come up. So, follow the instructions that come up on the screen and remove the application accordingly.
  • Once the removal of the program is complete, restart the computer. After that, download the setup file for the Spotify application from its official website. Then install the same on the machine.

After the installation is completed, launch Spotify and see whether this issue comes up or not.

To efficiently fix the Spotify error code 4, you can follow all the methods discussed above.