how can i receive the clients ip address in any docker container?
in my php application i need to check client ip addresses with $_SERVER[REMOTE_ADDR] to control access which is at the moment not possible.
for example i am running a php-apache webserver in container on port 8080.
my ip address is : 192.168.80.177 container network: 172.21.0.0/16 container ip': 172.21.0.3
when i access localhost:8080 the ip of the docker network gateway will be logged (172.21.0.1).
is it possible to pass my client ip address to the docker container?
thank you