Skip to content
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

Closed
Sleepy-gogo opened this issue May 28, 2023 · 8 comments
Closed

Localhost Refused to Connect #12

Sleepy-gogo opened this issue May 28, 2023 · 8 comments

Comments

@Sleepy-gogo
Copy link

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)
image

@molnarmark
Copy link
Owner

Hi,

I assume you have the Live Server package installed globally?

If not, that is a requirement.
If you do, can you try running the live-server command from the command line / powershell, just to see if it fires up?

@Sleepy-gogo
Copy link
Author

Indeed!

This is the weird part, I tried using the package itself and sure enough, it works

image

But when trying to launch a server from the extension it's when it doesn't work! So naturally I've just been using the package, but tried posting this anyway so it may get fixed for future users

@Dashrath158
Copy link

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?

@Sleepy-gogo
Copy link
Author

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.

@molnarmark
Copy link
Owner

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. 😦

@Dashrath158
Copy link

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.

@Sleepy-gogo
Copy link
Author

Sleepy-gogo commented Jun 13, 2023

Same here, tried looking into the firewall, and running processes long ago, and I know that everything's alright. My sublime and node are in the same drive too.

I actually asked one of my friends who has a better pc and everything seems fine on his end.
image

For once, it actually may be hardware issues. I don't know what else it could be.

@molnarmark
Copy link
Owner

Yeah, this is the issue. It only happens for some, thus I can't reproduce it. It also only seems to happen on Windows.

@Sleepy-gogo Sleepy-gogo closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants