How to get the original client IP inside the docker container to put into the database as a log, while I’m still trying with a simple code. I’m using nodejs express with module type configuration style.
this is my code:
On Docker Desktop, the only way to retain the client ip is to enable host network in the Docker Desktop settings and starting the container attached to the host network.
i try install docker on linux and i get original client IP. I run with command docker run -d --restart unless-stopped --name read-ip-container --publish 1234:1234 read-ip:latest i don’t know why it’s not working when host OS is windows but working on linux very well