Docker Community Forums

Share and learn in the Docker community.

Not able to connect to external ip:port from within the container

Hi, I have an app inside the container, with which I need to connect to external [ip_address]:[port]. I’m able to ping the target [ip_address] from within the container, but when I try “telnet [ip_address]:[port]” I got “Unable to connect to remote host: Connection refused”. I’m able to telnet directly from Win, so I know the port on the host is accessible. What do I have to do to connect from inside the container? (And I know this is just Win issue, when we tried the same on Linux machine, the connection worked.)

I have Docker version 2.0.0.3 and W10 Enterprise.