mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Can Wiremock listen on different URLs? #484
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 @chrisw11112 on GitHub (Feb 7, 2023).
Originally assigned to: @StefH on GitHub.
Thanks for any help! I'm trying to start a wiremock server with a url of http://ls-localhost:8080 but am getting a timeout error. Is This a valid use case?
This is my code
I have a very specific use case for this and it needs to have the prefix to work correctly.
Thanks!
@StefH commented on GitHub (Feb 7, 2023):
I think this will only work if you define
ls-localhostin the hostfile?@chrisw11112 commented on GitHub (Feb 7, 2023):
Are you referring to the windows/linux host file are is there something I'm missing?
@StefH commented on GitHub (Feb 7, 2023):
Correct.
@chrisw11112 commented on GitHub (Feb 8, 2023):
Thanks for the super quick replies! Are there by any chance any plans to change that functionality and would you like me to close the thread?
@StefH commented on GitHub (Feb 8, 2023):
Listening on multiple URL's can be done like this
However listening can only be done on
localhostor an ip-address from the server where WireMock.Net is running.