learn icon indicating copy to clipboard operation
learn copied to clipboard

Launch.json should use 127.0.0.1 instead of localhost

Open davebneufeld opened this issue 5 years ago • 1 comments

Running the demo, the default URL/IP address is local host, but the program actually startts on 127.0.0.1

Changing Launch.json to that number makes it run 'out of the box' (localhost seems to be a problem on chrome) "url": "http://127.0.0.1:8888",

Note: Running the program, output is:

webpack-dev-server --progress --profile --colors

10% building modules 1/1 modules 0 active Project is running at http://127.0.0.1:8888/

davebneufeld avatar Mar 16 '19 22:03 davebneufeld

@davebneufeld - apologies for taking so long to get back to you.

What OS are you using. I'm testing and developing this on Ubuntu 18.04.

localhost on most machines is mapped in the /etc/hosts file to 127.0.0.1 so it should generally work.

Instead of launching it from VSCode try and start it from the terminal by running npm start. If that works then it should be running on http://127.0.0.1:8888/ which should by synonymous with http://localhost:8888/ and both should work.

I tested it just now and it works like that locally for me.

Using Node v10.15.1 and Npm v6.4.1

guyellis avatar Mar 19 '19 04:03 guyellis