Spotify is probably the most popular online music streaming service and millions of people use it every day to stream and download songs from their favorite artists after paying for a monthly subscription.. Even so, the player has some problems, as the error code 4 Spotify that appears to random users.

It's a big deal for casual users who just want the easiest possible way to listen to music on their PC without having to do anything other than hit the play button.. The message that appears throughout is like: ‘No Internet connection detected. Spotify will automatically try to reconnect when it detects an internet connection (Error code: 4) ».
What causes the error code 4 from Spotify?
The error is usually due to incorrect internet connection settings, which can often be easily corrected using different DNS settings. What's more, the Spotify client has some connection settings like proxy type that you can modify to solve the problem.
The problem may also be due to your antivirus tool preventing the client from connecting to the internet. You must add Spotify as an exclusion or replace the tool.
Solution 1: use a different DNS
The problem is usually caused by a faulty internet connection that is simply not accepted by Spotify's servers or their service.. The problem can be easily solved by changing the default DNS settings to use the one provided by OpenDNS or Google. This can be easily done in the Control Panel, so be sure to carefully follow the steps below.
-
Use the Windows key combination + R which should immediately open the Run dialog where you need to type $ 0027ncpa.cpl $ 0027 in the bar and click OK to open the Internet connection settings item in the Control Panel.
-
The same process can also be performed using a manual control panel. Change the view by setting the category at the top right of the window and clicking Network and Internet at the top. Click the Network and Sharing Center button to open it. Try locating the Change adapter settings button in the left menu and clicking on it.

-
Now that the internet connection window is open using any method above, double click on your active network adapter and click the properties button below if you have administrator permissions.
-
Find the list item Internet Protocol version 4 (TCP / IPv4). Click on it to select it and click the Properties button below.

-
Stay on the General tab and change the radio button in the Properties window to “Use the following DNS server addresses” if it was configured for something else.
-
Set the preferred DNS server to 8.8.8.8 and the alternate DNS server at 8.8.4.4

-
Keep the option checked “Validate configuration on exit” and click OK to apply the changes immediately. Check if the error code 4 Spotify keeps popping up.
Solution 2: change proxy type in Spotify settings
Changing the proxy that Spotify uses to connect its client to the Internet is always a viable solution to the problem., but there is no hard and fast rule that deduces which menu option to choose. The option that usually solves the problem is “HTTPS”, but autodiscovery usually works too. Make sure to try several entries in the list before giving up.
-
To open Spotify, double click its shortcut on desktop or search for Spotify in the start menu and click on the first available result.
-
From the failed login page where you should see the error code 4 from Spotify, open Settings by locating its button anywhere in the window. In Settings, in the Proxy type option, click the drop down menu and choose an option.

-
Apply the changes and see if the error code 4 it has disappeared. If that is not the case, try different drop down menu options before you give up.
Solution 3: add Spotify to antivirus exceptions
Unfortunately, this problem is often related to antivirus incompatibilities, as they often tend to block Spotify's connection to the internet in a proper way. In some extreme cases, users even had to uninstall the antivirus they use because nothing else could help.
Even so, you should always be able to just add the Spotify executable as an exception in your antivirus.
-
Open the antivirus user interface by double clicking on its icon in the system tray (right side of the taskbar at the bottom of the window) or by searching for it in the Start menu.
-
Exception settings are at different points with respect to different antivirus tools. It can often be found easily and without complications, but here are some quick guides on how to find it in the most popular antivirus tools:
Kapersky Internet Security: Start >> Setting >> Additional >> Threats and exclusions >> Exclusions >> Specify trusted applications >> Add.
AVG: Start >> Setting >> Components (edit) >> Web Shield >> Exceptions.
Avast: Start >> Setting >> General >> Exclusions.
-
You will need to add the Spotify executable file in the box that will appear so that you can navigate to the file. The best way to locate Spotify is by right-clicking its shortcut on the Desktop and choosing the Open file location option from the context menu..
Spotify – Open file location
-
Check if you can now use the program without receiving the error code 4 from Spotify. If the error still appears, you may consider using another antivirus or firewall tool, Especially if the one that gives you the problems is free!
Spotify – Open file location



