I had this problem and I solved it by changing the port number in the settings.json file to an opened one.

To get to the settings.json file you just click CTRL+SHIFT+P, then type "settings", click the "Preferences: Open Settings (JSON)", then paste this inside the { }:

"liveServer.settings.port": 0

This will randomly pick an opened port each time. This is how my JSON file looks like:

{
    "liveServer.settings.port": 0
}

If there are multiple lines in the JSON file, make sure each line is separated by a comma(,), like this:

{
    "liveServer.settings.CustomBrowser": "microsoft-edge",
    "liveServer.settings.port": 0
}
Answer from Elyasaf755 on Stack Overflow
🌐
freeCodeCamp
freecodecamp.org › news › visual-studio-code-live-server-not-working
Visual Studio Code Live Server Not Working
August 14, 2020 - Then, reopen VSCode and try again – go to the HTML file you want to view, right click, and select "Open with Live Server". It's possible that the extension is working, but your system doesn't have a default browser.
Discussions

Problem in Vs code (Vs code Live server is not Working)
hello, I have been trying to resolve the live server issue but I am unable to reload the page when I click on the live server icon to open the HTML and CSS code in the browser it shows this but never opens it in the browser More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
1
0
January 4, 2024
VS Code Live Server Doesn't Load/Always Refreshing.
Having this problem too More on reddit.com
🌐 r/vscode
1
1
January 23, 2025
VS Code Live Server not working
Hi Trying to use VS Code Live Server, I’ve installed the extension. In the address bar I’ve entered: http://127.0.0.1:5500/plainkit-master/site/templates/oil-paintings/ I receive: Cannot GET /plainkit-master/site/temp… More on forum.getkirby.com
🌐 forum.getkirby.com
0
0
October 15, 2019
Visual studio code live server not giving me the preview
🌐 r/vscode
5
4
December 15, 2022
🌐
Reddit
reddit.com › r/vscode › vs code live server doesn't load/always refreshing.
r/vscode on Reddit: VS Code Live Server Doesn't Load/Always Refreshing.
January 23, 2025 -

Hello, The Visual Studio Code Live Server extension doesn't work properly for me anymore. When I open a live server on any project, the project opens a tab with the live server port (http://127.0.0.1:5500/) as intended however any project I open will make the tab always stuck on refreshing. This causes many issues such as images/assets not loading all the time, Javascript/typescript not working and also Any changes after I press save on a project won't automatally update to the live server. I attached a video of the problem.

A little more info: The extension used to work for me ~4 months ago and I hadn't used VS code since then as I was working on a different project that didn't need me to use VS Code. The problem still happens no matter what is loaded, the word "Hello" could be the only thing in the body of the html and it would still have the issue. (Also yes I use <meta charset = “UTF-8”>, I saw someone mention it in another thread)

What I've tried:
Reinstalling VS Code and extensions (Same problem)
Trying the Insider Version (Same Problem)
I changed Autosave to AutoDelay
DIsabling every extension except live server and disabling every chrome extension.

Also any other extension similar to Live Server doesnt work such as Five Server, Live Preview etc

If anyone has had this problem, or can help with the issue, or has any question let me know! Thanks!

🌐
Kirby Forum
forum.getkirby.com › the cms › questions
VS Code Live Server not working - Questions - Kirby Forum
October 15, 2019 - Hi Trying to use VS Code Live Server, I’ve installed the extension. In the address bar I’ve entered: http://127.0.0.1:5500/plainkit-master/site/templates/oil-paintings/ I receive: Cannot GET /plainkit-master/site/temp…
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Live Server - Visual Studio Marketplace
Extension for Visual Studio Code - Launch a development local Server with live reload feature for static & dynamic pages
Find elsewhere
🌐
Quora
quora.com › What-do-you-do-if-a-live-server-is-not-working-in-VS-Code
What do you do if a live server is not working in VS Code? - Quora
Run Live Server (Go Live). If it works here, the issue is project-specific (config, .vscode settings, or file paths).
🌐
Bobby Hadz
bobbyhadz.com › blog › vscode-open-with-live-server-not-working
Visual Studio Code: Live server not working issue [Solved] | bobbyhadz
April 6, 2024 - Right-click in your index.html file and select Open with Live Server. If the error persists, try restarting your VS Code Window. ... Ctrl + Shift + P on Windows and Linux. Command + Shift + P on macOS.
🌐
Reddit
reddit.com › r/vscode › visual studio code live server not giving me the preview
r/vscode on Reddit: Visual studio code live server not giving me the preview
December 15, 2022 -

Hello , am not sure this is the right place but when i open my htlm file with live server on google chrome , normal or Incognito mode its not working

this : https://cdn.discordapp.com/attachments/703709336370675913/1052567823165181963/image.png is what i am getting

I tried changing my browser , changed the live server version , changed the port nothing works .

I checke some google videos that told me to switch port , change folder name nothing works

Thanks in advance

edit: no its not .htlm was just a solution that did not work from youtube : https://cdn.discordapp.com/attachments/703709336370675913/1052588668289822730/image.png but no mater the file live server preview does not work for

edit2: ok i had to rename a few things it starting to work !

The problem was that live server was not updating changes so obviously it would not show any even if the other problems where solved,the solution was to change

• Open settings.
• Search for 'autosave'.
• Set it to 'afterDelay'.

It works fine ! thanks guys <3

🌐
GitHub
github.com › ritwickdey › vscode-live-server › issues › 65
vs code is not opening browser directly when live server gets on · Issue #65 · ritwickdey/vscode-live-server
January 17, 2018 - Hi When i am running my html file on vs code through "open with live server option" vs code is not opening browser directly when live server gets on its says "server is started at 5500" and then i have to go to my browser and type "localhost:5500" to get my folder and files .
Author   niharikaarora1997
🌐
GitHub
github.com › ritwickdey › vscode-live-server › issues › 2941
LIVE SERVER IS NOT WORKING · Issue #2941 · ritwickdey/vscode-live-server
May 18, 2024 - live server is not working. can't open chrome. only notify server is open but not starting. what to do.
Published   May 18, 2024
Author   BhatuJay
🌐
GitHub
github.com › ritwickdey › vscode-live-server › issues › 2858
Live server is not responding · Issue #2858 · ritwickdey/vscode-live-server
November 7, 2023 - Type: Feature Request The live server is installed in the VScode very easly and have a go live option in stats bar but when i click on in it does not respond and nothing happen. Please try to solve my problem. Extension version: 5.7.9 VS...
Author   Shashank-Kumar-gif
🌐
Reddit
reddit.com › r/vscode › live server is not working in vs code
r/vscode on Reddit: Live server is not working in vs code
November 27, 2018 -

hello everyone , i've install live server in my vscode with ubuntu OS. suddenly its not working . i've tried reinstalling vs code still its not working . i paste this command "liveServer.settings.CustomBrowser": "chrome" in user.json setiings still it doesnt do anything .Not even getting the go live button in the status bar . Is there any solution to fix the problem .

Any help would be appreciated.

🌐
Code with Mosh
forum.codewithmosh.com › html/css
Visual Studio Code - open with live server - works and doesn't - HTML/CSS - Code with Mosh Forum
July 17, 2022 - Hi There, I have two html files, both identical apart from the titles and a couple of style variations on a video. Very basic. I’m like one hour into the course, total beginner. So one will open with live server on Chrome while the other won’t. In theory they should both open.
🌐
GitHub
github.com › orgs › community › discussions › 178047
Live Server not opening in browser from VS Code · community · Discussion #178047
October 26, 2025 - Check HTML File Location: Ensure your HTML file is inside the workspace folder you opened in VS Code. ... Uninstall Live Server, delete its settings (.vscode/settings.json if present), then reinstall.
🌐
freeCodeCamp
forum.freecodecamp.org › t › visual-studio-code-live-server-not-working › 392813
Visual Studio Code Live Server Not Working - The freeCodeCamp Forum
May 22, 2020 - Visual Studio Code Live Server Not Working [Solved] VSCode has a lot of great extensions, and Live Server is one of the best. With just a couple of clicks, Live Server lets you see your page live in an actual browser. B…
🌐
YouTube
youtube.com › watch
VS Code Live Server Not Working? Fix It Fast - YouTube
VS Code Live Server Not Working? Fix It FastIs your VS Code Live Server acting up? 😩 Don’t stress — I’ve got you covered! In this video, I’ll show you some ...
Published   April 27, 2025
🌐
YouTube
youtube.com › ali hossain
Why Visual Studio Code Live Server Not Working? - YouTube
🎉🎉 Join Payoneer & Earn 25$ 👉 https://alihossain.com/payoneer👩‍💻 Learn Tailwind CSS 👉 https://alihossain.com/tailwindcss👩‍💻 Learn Web development 👉 ...
Published   December 15, 2021
Views   132K