Vscode-live-server: Error on port 5500

Created on 8 Dec 2017  路  19Comments  路  Source: ritwickdey/vscode-live-server

I've only been using vs code for about a week now. Just when I've started to get used to it I'm getting a error on port '5500 please change in settings' alert when I attempt to use the live server extension.

closed question

Most helpful comment

Another option is to kill what's running on port 5500.

At the command line:
lsof -i :5500 <--tells you what's running on 5500, returning a PID (process ID).
kill -9 ### where ### is the PID.

Then go back into VSC and start Live Server again. Works for me.

This is definitely a cool extension. Thanks!!

All 19 comments

How exactly do you change the setting? I'm new to VS Code.

(official vscode docs : https://code.visualstudio.com/docs/getstarted/setting)

Is the issue still there?
Let me know if I can help further ?

Yes, the issue is solved by adding a setting liveServer.settings.port:0, or any different port.
Excellent extension! Thank you.

Another option is to kill what's running on port 5500.

At the command line:
lsof -i :5500 <--tells you what's running on 5500, returning a PID (process ID).
kill -9 ### where ### is the PID.

Then go back into VSC and start Live Server again. Works for me.

This is definitely a cool extension. Thanks!!

Hey I'm having a problem, I tried changing the port to 0 and I'm still getting error's. I even tried to kill the running port on the command line and it's still not working. What should I do?

Same problem for me. Now what?

lsof

@thisLinda lsof is a command for Linux, not Windows. No clue how the command is on windows. Try to google with "windows netstat openend ports command"

aHa!!!!

Thank you. I'll continue searching.

Solved itself after I ran the VSC update.

For Windows: (To kill 5500 Port)

Run command-line as an Administrator.

netstat -ano | findstr :5500
taskkill /PID typeyourPIDhere /F

Reference: https://stackoverflow.com/a/39633428/6120338

Have you tried to change port ?
https://github.com/ritwickdey/vscode-live-server/blob/master/docs/settings.md

ritwickdey, thank You much!)

@kapunahelewong thanks! I want to run two ports at same time though.

Hello Guys, I changed my port Number of my Live Server to 0. However, it tells me Server is now offine after I run it. What should I do?

Hello Guys, I changed my port Number of my Live Server to 0. However, it tells me Server is now offine after I run it. What should I do?

Sorry, it's offline!

image

pls can i use liveserve offline?

I also had problems with the port 5500, in my case it was the firewall, I solved the problem here => https://help.ubuntu.com/community/UFW
====== in terminal =====

sudo ufw allow 5500

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iAdesanyaDaniel picture iAdesanyaDaniel  路  3Comments

js76155 picture js76155  路  4Comments

Er-rchydy picture Er-rchydy  路  3Comments

ninlil picture ninlil  路  6Comments

yzhang-gh picture yzhang-gh  路  5Comments