-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Issue: Unable to get host to listen on ips other than 127.0.0.1 using StandAloneApp #124
Comments
I have a project https://github.com/WireMock-Net/WireMock.Net-docker ,did you already see this? About docker issues : In my case this seemed to be only the case when running a windows container on a windows machine. To fix this I used a docker port proxy tool. Sadly I forgot the real name for that tool, if I remember it, I will copy this here. |
What do you think about changing System.Net.IPAddress.LoopBack to System.Net.IPAddress.Any? I've cloned and tried this on my windows machine & windows container and it works, but I'm not sure what else this might break. I'm expecting perhaps not much since it is hardcoded currently to listen to LoopBack anyway. |
Did you also check this on windows in a linux container? If this also works, you can create a PR. |
I have now and it also works. I'll create a PR shortly, thanks! |
When do you expect to create a new release with the latest merges included?
…On Sun, Apr 15, 2018, 4:23 AM Stef Heyenrath ***@***.***> wrote:
Closed #124 <#124>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#124 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ3Z7RWPhnSVChBlmRpPiq3IT3k0cRN2ks5tox-XgaJpZM4TQcUP>
.
|
It's merged and a new version is added to NuGet. |
Thanks, fixed same issue for me when unable to access the standalone mock externally, despite working fine on localhost. |
In trying to configure the StandAloneApp to listen on all ips, I keep coming up with the issue that it appears to only listen on 127.0.0.1 (localhost/loopback). I found this line of code that seems like it forces it to loopback:
https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net/Owin/AspNetCoreSelfHost.cs#L79
I am ultimately trying to implement this in a docker container and found this issue in being unable to expose the listening port. Am I missing something?
Thanks for any help! Loving the tool!
The text was updated successfully, but these errors were encountered: