-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Listen on all ips #1154
Labels
Comments
I need to double check that. BTW what .NET version are you using? |
I usually use .net 8 now. |
I tried it and moved the host check for 0.0.0.0 at top and return it as ListenAnyIP and it works:
|
Looks good. Can you make a PR and if possible add/update a unit test? |
PR created and tried to add a test. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ask this as question, maybe I missed something obvious.
When I want to listen to all public IPs I thought I could use http://0.0.0.0 as URL, but it was not working.
So I had to get all my current IPs and add them as List.
And when I check this line of code:
https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net/Owin/AspNetCoreSelfHost.NETStandard.cs#L79
it looks like it should use "ListenAnyIP" but instead it is listed in "ListenLocalhost"?
The text was updated successfully, but these errors were encountered: