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

npm start not showing correct IP #5657

Open
dmarcos opened this issue Feb 9, 2025 · 3 comments
Open

npm start not showing correct IP #5657

dmarcos opened this issue Feb 9, 2025 · 3 comments

Comments

@dmarcos
Copy link
Member

dmarcos commented Feb 9, 2025

My local machine IP is interface en0 on a Mac and IP showed when running npm run start or npm run start:https is incorrect.

<i> [webpack-dev-server] Loopback: https://localhost:8080/, https://[::1]:8080/
<i> [webpack-dev-server] On Your Network (IPv4): https://abc.xyz.lmn.qwe:8080/

It shows the interface en5 which is not my public IP either. Any ideas @vincentfretin? Thanks

@vincentfretin
Copy link
Contributor

Yes it's webpack/webpack-dev-server#5411 please add a comment there saying you're on macOS and you also have that regression. For me it should just take the first interface like it used to, I don't understand the logic of taking the last interface.
webpack-dev-server 5.0.4 is working correctly.

@vincentfretin
Copy link
Contributor

Can you please add before line 440 in node_modules/webpack-dev-server/lib/Server.js

console.log(networks);

and add a comment on the issue with the output?

@dmarcos
Copy link
Member Author

dmarcos commented Feb 10, 2025

Can you please add before line 440 in node_modules/webpack-dev-server/lib/Server.js

console.log(networks);
and add a comment on the issue with the output?

Added a comment webpack/webpack-dev-server#5411 (comment)

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