Detect if a target container is running host networking, and if so, use the IP address of the first bridge net gateway.