-
Notifications
You must be signed in to change notification settings - Fork 27k
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
How to use a local IP address instead of localhost ? #4025
Comments
@glemiere https://github.com/zeit/next.js/blob/canary/bin/next-dev#L34 Lets document this in the readme 👍 |
Thank you! I also noticed that |
@timneutkens I saw help was wanted, so I made a PR that you may appreciate. ;-) |
I was looking at documenting this in the readme, but I can only get it working with a few values: Works:
Doesn't work:
What should be expected to work? |
https://github.com/zeit/next.js/blob/canary/bin/next-dev#L56 https://github.com/zeit/next.js/blob/canary/server/index.js#L290 As you can see the value is directly passed into Node.js's http.listen, so any value that doesn't work is related to Node.js not supporting it I guess. |
Sorry in advance if I didn't find any informations. If this behavior is actually possible, please specify it in the README.
Expected Behavior
Being able to use an IP (10.x.x.x) instead of localhost while using next dev.
Current Behavior
Dev server launch on localhost.
The text was updated successfully, but these errors were encountered: