-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localhost Refused to Connect #12
Comments
Hi, I assume you have the Live Server package installed globally? If not, that is a requirement. |
Hey, I have the same issue so just like you I am also using it directly from the cmd but mine takes so much time to open folders, did you encounter something similar? Can it be a hardware issue? |
Maybe it is hardware issue, my machine is actually really outdated, and runs slowly for certain tasks, so, it wouldn't be a surprise if that's the case with this. I'm gonna ask one of my buddies with a better pc to try the extension and see if they have the same issue, but I really don't see why it should be a problem tho. |
Maybe it also could be permission issues? Node being on drive A, sublime being on drive B, etc. Windows can be problematic with cases like those. I don't use Windows for development, but when I tested the extension I had no issues myself, but of course I see some people reporting issues like this, so something is definitely up - I'm unable to reproduce the issue though sadly. 😦 |
So on my end I checked the firewall settings they were alright, port 8080 was also free and no process was using it, disabled controlled foldered access, I had apache running in background turned that off too still the problem persists. My node and Sublime are also on same drive in ssd. |
Yeah, this is the issue. It only happens for some, thus I can't reproduce it. It also only seems to happen on Windows. |
I've setted all the paths correctly, as you can see below.
{ "node_executable_path": "C:/Program Files/nodejs/node.exe", "global_node_modules_path": "C:/Users/(My user)/AppData/Roaming/npm/node_modules" }
And it shows the "Live Server running on port 8080" message. The problem comes when trying to run the Open in Browser command, as it shows Localhost refused to connect.
I've seen that another user had the same problem before, but I can't find a way to fix it. Running on Windows 10, using the latest version of Sublime Text, the package seems to be the latest, but even if all looks right, this is what I get. (It is on spanish, but I think I've been clear enough)
The text was updated successfully, but these errors were encountered: