Getting users PublicIP w/Docker #2510
-
Using Docker-Compose, i am trying to show visiting users PublicIP, i am not sure what i am doing wrong. So i have managed to scrape the following together: appsettings.json
controller:
Produces
So 172.18.0.1 is Docker Gateway, 172.18.0.3 is YarpProxy, 172.18.0.4 is API. I suspect the issue i have is that X-Forwarded-For is not being set up correctly, so i try to log: program.cs
produces
Help is welcome :D |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
docker/roadmap#157 referenced by Karg from Orleans discord explains it, Linux supports "host" network which looks outside Container network, unlike Windows/WSL. |
Beta Was this translation helpful? Give feedback.
docker/roadmap#157 referenced by Karg from Orleans discord explains it, Linux supports "host" network which looks outside Container network, unlike Windows/WSL.