skip to Main Content

I’m trying to run a basic html file with live server extension, when I run it I get the Server is Started notification(as shown in the img below) but then nothing happens enter image description here
even manually going to port 5500 like "http://127.0.0.1:5500/index.html" I get the following error

Cannot GET /index.html

i tried restarting vs code. uninstalling and reinstalling live server extension also tried uninstalling and reinstalling vs code. i set the default browser in the extension settings and on my computer any other ideas i can try would be appreciated

Thank you

2

Answers


  1. Chosen as BEST ANSWER

    I'm not sure why but changing file names (removed special characters) worked only if i do it manually it still doesn't load the browser automatically though..


  2. This could be the issue I just solved.

    VS code was not using the local IP as a host.

    Manage > settings > search "use local" or "live server"> check "use local IP as host".

    I hope that helps you or your connection needs could be unique and you might want to look at this guide. https://code.visualstudio.com/docs/setup/network

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search