Answer the question
In order to leave comments, you need to log in
Why can I map the same ports, but not the different in Docker on Windows?
I have a .NET client-server desktop application. Server listens to a port (WCF). I try to run it in a container and use ports mapping.
When I run docker run -d -p 9301:9301 <server-image>
And then connect to it with client: net.tcp://_container_host_:9301 . This works.
When I run docker run -d -p 9302:9301 <server-image>
(or map to any other port). And then connect to it with client: net.tcp://_container_host_:9302 . This doesn't work.
Using Windows Server 2016 (10.0.14393) with Containers feature enabled. Docker 17.06.2-ee-12.
Any ideas why mapping of the same ports works, but not the mapping of the different?
Answer the question
In order to leave comments, you need to log in
The problem was in WCF. This answer helped:
https://stackoverflow.com/a/10217733/6676957
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question