'Error Received when using liveserver for VSCode
I was wondering if anyone possibly know the solution for this error
Error: connect ECONNREFUSED 127.0.0.1:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
I'm trying to run a live server while working on my html file but it's not letting me . I restarted my pc..same issue... restarted program...same issue... used localhost... same issue ...switched setting to chrome browser....same issue..
I also added (code below) to my JSON Settings file...Still running to the same issues. It was running fine last night and this morning it completely stopped working.
"liveServer.settings.CustomBrowser": "chrome"
Solution 1:[1]
Open VSCode and click File, Preferences, Settings than type in search settings Liveserver port The LiveServer Settings Port option will appear, click Edit in settings.json.
And set "liveServer.settings.port": 5500, save and close settings.json.
And If you have a .vscode directory in your project directory then remove it.
Restart VSCode and run Liveserver and keep on Coding! :-) Now it's should up and running;-)
Solution 2:[2]
ok so i had this same problem today and what i did was to go into file>setting look up live server and edit json and delete the settings there and saved and reloaded and it seem to start to work again.
Solution 3:[3]
I had the same issue. I changed my settings in settings.json(live server extension settings) to this . It started working again !!! I hope it's useful
{
"workbench.colorTheme": "Default Dark+",
"liveServer.settings.port": 5500,
"liveServer.settings.https": {
"enable": false,
"key": "",
"passphrase": "",
"cert": " "
},
"liveServer.settings.proxy": {
"enable": true,
"baseUri": "http://127.0.0.1:80",
"proxyUri": "http://127.0.0.1:80"
},
"liveServer.settings.CustomBrowser": "chrome",
"liveServer.settings.donotShowInfoMsg": true,
"liveServer.settings.host": "127.0.0.1:80",
"liveServer.settings.useLocalIp": true
}
Solution 4:[4]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Kevin Phung |
| Solution 3 | Saurav Gawali |
| Solution 4 | Ethan |

