For example if you run this from the parent machine run: ipconfig getifaddr en0 All outgoing traffic however, is routed through your parent host, so as long as you try to connect to an IP it recognizes as itself (and the docker container doesn't think is itself) you should be able to connect. On Docker for Mac the docker0 bridge does not exist, so other answers here may not work. For prior versions of Docker for Mac the following answer may still be useful: Update: On Docker for Mac, as of version 18.03, you can use as the host's IP.