-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Wrong HOST is shown in the console #9119
Comments
Why this is important? We use OAuth2 (callback url) and CORS, which are set to 0.0.0.0:8080. The localhost message is very misleading and if someone try to use localhost, they lose time to debug a non-existing problem. |
There's an explicit check for prettifying the value in create-react-app/packages/react-dev-utils/WebpackDevServerUtils.js Lines 41 to 43 in f5c3bdb
Changing this to const isUnspecifiedHost = (host === '0.0.0.0' && process.env.HOST !== '0.0.0.0') || host === '::'; could be a fix |
This is the correct output. Look at the output you gave:
Local is for you on your computer. On your network is for everyone else. |
I have similar issue ,
now in the console
I don't know how it change but I noticed it 3 days ago
the old localhost still working http://192.168.0:66:3000 previously I was accessing my projects from other devices (phone) on the same network at http://192.168.0.66:3000 (till now It's still accessable ) but the link that gave me from the console (http://192.168.137.1:3000) is not accessable for other devices anymore only from the same device I work on in short: the localhost that given by create-react-app and should be accessable on the same network is unknow |
Describe the bug
After start it still shows localhost:
Did you try recovering your dependencies?
No.
Which terms did you search for in User Guide?
https://github.com/facebook/create-react-app/issues?q=%22On+Your+Network%3A%22+host
Environment
Steps to reproduce
(Write your steps here:)
Expected behavior
It shows 0.0.0.0:
Actual behavior
It shows always localhost.
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: