Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

How to fix "127.0.0.1 refused to connect." when trying to log in

How to fix "127.0.0.1 refused to connect." when trying to log in

I launch spotify and when I try to log in, it opens a window in my browser, when I click on "Continue to the app", it opens a new tab saying
"This site can’t be reached
127.0.0.1 refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
Check your Internet connection"
My internet connection is fine.
Reply
6 Replies

Hi there,

 

Welcome to the Community and thanks for reaching out!

 

I'd recommend changing your default browser to a different one to see if the same error would occur.

 

If it does, you can check your hosts file for any entries with spotify or fastly in the address and delete them (as well as any other unusual entries you spot). You'll find a detailed guide on how to edit the hosts file here.

 

Cheers!

YordanModerator
Help others find this answer and click "Accept as Solution".
If you appreciate an answer, maybe give it a "Like".
Are you new to the Community? Take a moment to introduce yourself!

rheia_0-1705749871292.png

 

Plan

Premium

Country

Netherlands

Device

PC

Operating System

Windows 11

 

My Question or Issue

hi 
i was cleaning up windows and I re installed Spotify today but it just doesn't let me login. the login process works fine it takes me to a new tab on my browser (chrome or edge tried both of them) and it has a green button which says continue to the app but after that it gives one huge 12.7.0.0.1 error (image attached) and doesn't let me login. I have tried using a vpn and not using one changing my dns checking the host files in the system32/drivers/etc folder for anything regrading Spotify rebooted my router and also tried it with my phones hotspot. there was even a long complicated forum post here using some app called XAMPP to fix it and that didn't work too. this is so weird Spotify was legit working a couple of hours ago I tried re installing and this happened.
I would also like to add that the web player works I'm listening and using it as I write this post also the app works on my phone too. any help is appreciated and thank you.

Screenshot 2024-01-20 145412.png

Hey, check if you have a vpn connected. That was the issue and disconnecting the vpn allowed me to login

Not work. Linux app. Oh god, why spotify uses such perversions?

This is not a hosts problem.This seems to be a problem with the way the default browser is calling the local Spotify app to open.

I Fixed this by copying the URL (see additional notes below) from my browser window that opened, into a completely different browser.

I was prompted to login to my Spotify account, then it opened the Spotify desktop app correctly.

 

The URL isn't the one starting with 127.0.0.1
The URL is first URL when you're prompted to login to your account. It should be something like:
https://accounts.spotify.com/en/oauth2/v2/auth?referral=spotifyweb-windows10-store-feb18&utm_campaig...

 

You may know or may not but the computers using a special IP address called localhost and it is IP is 127.0.0.1 and there are different ports ranging from 0 to 60k numbers and in that situation Spotify is trying to connect to your computer locally (127.0.0.1) but failing. In case wondering about the localhost, you may learn here more: https://meaning.bot/what+are+ip+addresses+127.0.0.1:49342,+57573,+and+62893/ 

 

Turning back to your question again, this usually happens due to issues with proxies, VPNs, or firewalls.

 

I can recommend you to do the followings:


If you’re using a VPN or have a proxy set up, try disabling them. These can sometimes block Spotify’s connection.


Clear the cache in your browser or the Spotify app. Sometimes old data can cause this kind of issue.


Temporarily turn off your firewall or antivirus software. They can sometimes block Spotify from connecting properly.


If none of the above work, try reinstalling the Spotify app. This will reset any settings or files that might be causing the problem.

Suggested posts