So, I would like to run a service inside container which wil be accessible from outside (imagine like httpd). Everything works fine, but the IP of the “visitor” will always be 172.17.42.1. I tried bridged and host mode and it’s the same.
I searched everywhere, but I could not find a single article about this issue …
My question is, what do I have to do, so the service inside container sees the real IP not the host IP?
PS: Docker is running on a server that is in the same network as my PC, but different device (like 192.168.1.20 and 192.168.1.30). The issue is also no different, if I access container from outside (via port forwarding).