Live Server not opening in browser from VS Code #178047
Replies: 6 comments 1 reply
-
|
🔍 1. Make sure you’re opening the correct folder Live Server must run inside a workspace or folder, not just a single file. ✅ Fix: In VS Code, go to File → Open Folder... Select the folder that contains your HTML file Then open your HTML file inside that folder and click “Go Live” again ⚙️ 2. Check Live Server settings Sometimes the extension’s internal settings break. ✅ Fix: Open VS Code settings (Ctrl + , or Cmd + , on Mac) Search for: liveServer.settings.root If this field has a value (like /src or /public) but your HTML is somewhere else, Live Server won’t find it. Clear it or set it correctly. "liveServer.settings.root": "/" Also check: liveServer.settings.port Change it to a different port (e.g., 5501) to rule out port conflicts. 🧱 3. Check if another app is using the port If another process is using port 5500, Live Server may run but not actually host your site. ✅ Fix (Windows): netstat -ano | findstr :5500 If something is using it, note the PID and kill it: taskkill /PID /F Then restart VS Code and Live Server. 🌐 4. Try to manually open the correct file path Sometimes Live Server runs, but the URL is wrong. Check the status bar — if it says Port: 5500, try visiting: (e.g., http://localhost:5500/index.html) 🔄 5. Clear Live Server cache / reinstall properly Reinstalling doesn’t always clear its cached config. ✅ Fix: Uninstall Live Server Close VS Code Delete the extension folder manually: Windows: C:\Users<YourName>.vscode\extensions\ritwickdey.liveserver-* macOS/Linux: ~/.vscode/extensions/ritwickdey.liveserver-* Restart VS Code and reinstall Live Server 🧰 6. Run manually via Node (test if it’s VS Code issue) If none of the above works, test if something blocks local hosting: In your project folder, open a terminal and run: npx live-server If it opens in browser, then the issue is VS Code integration, not the Live Server itself. |
Beta Was this translation helpful? Give feedback.
-
|
Possible Causes & Solutions:
If none of these work:
|
Beta Was this translation helpful? Give feedback.
-
|
Hey @sudheerxdev 👋, I’ve run into this issue before. A few things you can check: Make sure you’ve opened the entire project folder in VS Code, not just the HTML file. Live Server works best with a workspace. Try changing the port in the settings (liveServer.settings.port)—5500 might be taken. Check liveServer.settings.root—if it points somewhere else, your HTML won’t load. Setting it to / usually fixes it. Sometimes firewalls or antivirus software block Live Server, so make sure VS Code is allowed. Right-click your HTML file and select “Open with Live Server” instead of using the status bar button. If that doesn’t work, try creating a new folder with a simple index.html and see if Live Server opens it. Also, running npx live-server in the terminal can help figure out if it’s the extension or VS Code itself. |
Beta Was this translation helpful? Give feedback.
-
|
Hey! This can be frustrating, but here are the main things that usually fix it: 1. Open the folder, not just the file — Live Server needs the whole project folder open in VS Code. Go to File → Open Folder and select your project folder. 2. Check if the port is free — Sometimes port 5500 is already being used. You can change it in settings (search for 3. Try opening manually — While Live Server is running, try typing 4. Reinstall the extension — If nothing else works, uninstall Live Server completely, restart VS Code, and install it again fresh. Also worth trying: right-click your HTML file in the VS Code explorer and choose "Open with Live Server" instead of using the status bar button. Hope this helps! Let us know if any of these work for you. |
Beta Was this translation helpful? Give feedback.
-
Problem SummaryYou're experiencing an issue where Live Server shows "Port: 5500" in the status bar but doesn't automatically open your project in the browser. Even manually navigating to Main Steps to ResolveHere are the most effective solutions, ordered by likelihood: 1. Open the Folder, Not Just the FileLive Server requires a workspace context to function properly.
2. Check Live Server Root SettingThe extension might be looking in the wrong directory.
3. Test with Direct File PathTry accessing your specific file:
4. Check for Port ConflictsAnother application might be using port 5500.
5. Try Right-Click MethodInstead of the status bar button:
6. Check Firewall/AntivirusSecurity software might be blocking the local server. Ensure VS Code is allowed through your firewall. 7. Clean ReinstallIf nothing else works:
Quick TestCreate a new folder with a simple Let me know which solution works for you! 🚀 |
Beta Was this translation helpful? Give feedback.
-
|
I'm having a similar problem. The difference is that it works manually. I've tried everything to open it automatically and nothing works. I've changed the browser on the live server, uninstalled and reinstalled it, nothing worked. I don't know what else to do. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Body
Hello everyone 👋,
I’m facing an issue while using Live Server in VS Code. Whenever I click on “Go Live”, my project does not open automatically in the browser. The status bar shows “Port: 5500” but nothing happens — no tab opens, and manually entering http://127.0.0.1:5500/ also doesn’t load my HTML page.
Here’s what I’ve tried so far:
Reinstalled the Live Server extension
Checked the default browser settings
Restarted VS Code and system
Verified there are no syntax errors in my HTML file
Still, the issue persists.
Can anyone help me identify what might be wrong or how to fix this problem?
Thanks in advance! 🙏

Guidelines
Beta Was this translation helpful? Give feedback.
All reactions