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

GetFreePort() should take IP address; using localhost is not adequate #9

Open
rfay opened this issue Mar 22, 2019 · 2 comments
Open

Comments

@rfay
Copy link

rfay commented Mar 22, 2019

GetFreePort() assumes use of localhost, but it's not true that all interfaces on a computer will have the same binding. So the fact that something is not bound on localhost does not mean it's not bound on another interface.

@systemmonkey42
Copy link

This is definitely a problem. As a workaround, it was sufficient to change "localhost:0" to "0.0.0.0:0" to ensure the selected port is free on all interfaces.

@codenoid
Copy link

codenoid commented Jun 8, 2024

I see

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

3 participants