I’m running a docker container in a windows10 host and I have many external nodes connected to an app running in the container. Using netstat in the container’s terminal I can see all the connections remote hosts have the same internal ip address of 172.17.0.1, just with different port numbers. When I do netstat in a powershell on the windows host I can see the same connections this time the remote hosts have the actual external ip address and port numbers.
Question is how can I map a container connection’s remote hosts internal ip/port to the actual remote host external ip/port? For a given connection within the container I’m trying to identify the remote host ip address so I can troubleshoot issues on the remote host.
Or how can I reconfigure the socket contain so it doesn’t map external ip address/port to its own internal ip/port