Docker Community Forums

Share and learn in the Docker community.

Connecting from container to public ip of docker host


(Radiatejava) #1

I know there are multiple questions on connecting from container to local host. My question is very specific - I have my docker network setup in bridge mode and I want to know if is there a way to connect from the container to the local host using the host’s public/LAN ip instead of docker0 ip ? I have my server listening at public/LAN ip of the host only.