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

Port where WireMockServer listens to - v1.2x #445

Closed
paolopiaggio opened this issue Mar 25, 2020 · 8 comments
Closed

Port where WireMockServer listens to - v1.2x #445

paolopiaggio opened this issue Mar 25, 2020 · 8 comments
Labels

Comments

@paolopiaggio
Copy link

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
Copy link
Collaborator

StefH commented Mar 25, 2020

Do you use .NET Framework version ? Or .NET Core ?

And can you provide the start command you use?

@StefH
Copy link
Collaborator

StefH commented Mar 25, 2020

This seems a bug, I've to investigate more.

As a workaround you can provide the url, that works.

@StefH StefH added the bug label Mar 25, 2020
@paolopiaggio
Copy link
Author

paolopiaggio commented Mar 25, 2020

I am using .NET Core 2.2

I tried these 2 methods:

WireMockServer.Start(port: {portNumber})

WireMockServer.Start(new WireMockServerSettings
{
    Port = {portNumber}
}

@StefH
Copy link
Collaborator

StefH commented Mar 25, 2020

You can try preview NuGet : WireMock.Net.1.2.1-ci-13017

@paolopiaggio
Copy link
Author

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
Copy link
Collaborator

StefH commented Mar 25, 2020

@paolopiaggio
Copy link
Author

paolopiaggio commented 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:

WireMockServer.Start(port: {portNumber})

WireMockServer.Start(new WireMockServerSettings
{
    Port = {portNumber}
}

@StefH
Copy link
Collaborator

StefH commented Mar 25, 2020

OK. Closing issue, a new 1.2.2 version will be uploaded to normal NuGet in some time...

@StefH StefH closed this as completed Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants