mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Port where WireMockServer listens to - v1.2x #259
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @paolopiaggio on GitHub (Mar 25, 2020).
Hello, since version 1.2.0 it looks like the WireMockServer starts listening on a random port instead of the one specified in the settings.
it seems the issue happens with all the different .Start overload methods.
@StefH commented on GitHub (Mar 25, 2020):
Do you use .NET Framework version ? Or .NET Core ?
And can you provide the start command you use?
@StefH commented on GitHub (Mar 25, 2020):
This seems a bug, I've to investigate more.
As a workaround you can provide the
url, that works.@paolopiaggio commented on GitHub (Mar 25, 2020):
I am using .NET Core 2.2
I tried these 2 methods:
@StefH commented on GitHub (Mar 25, 2020):
You can try preview NuGet : WireMock.Net.1.2.1-ci-13017
@paolopiaggio commented on GitHub (Mar 25, 2020):
Hi @StefH , thanks for the prompt replies : )
I still don't see the WireMock.Net.1.2.1-ci-13017 prerelease package available.
I confirm that specifying the URL including the port does work.
@StefH commented on GitHub (Mar 25, 2020):
It's on MyGet ; https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions
@paolopiaggio commented on GitHub (Mar 25, 2020):
uh sorry...I missed that.
Yup, the issue looks fixed in here: WireMock.Net.1.2.1-ci-13017 👍
I tested again with the prerelease package WireMock.Net.1.2.1-ci-13017 and it work just specifying the port either with:
@StefH commented on GitHub (Mar 25, 2020):
OK. Closing issue, a new 1.2.2 version will be uploaded to normal NuGet in some time...