Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch.json should use 127.0.0.1 instead of localhost #726

Open
davebneufeld opened this issue Mar 16, 2019 · 1 comment
Open

Launch.json should use 127.0.0.1 instead of localhost #726

davebneufeld opened this issue Mar 16, 2019 · 1 comment

Comments

@davebneufeld
Copy link

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/

@guyellis
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants