Show external IP address in the audit when using Docker #472

Closed
opened 2025-10-07 00:16:16 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @edbourque0 on GitHub.

Feature description

Show external IP address in the audit page when using docker.

Pitch

Since docker uses the container’s network to communicate, I think it has issues getting the real client’s IP address so it logs it’s internal docker IP at every connection. This IP is also the one sent in suspicious activity email (and the condition that triggers it). So I think this would be something to look into. Also, could be cool to have the location (country ou city) of the IP.

IMG_6991

Originally created by @edbourque0 on GitHub. ### Feature description Show external IP address in the audit page when using docker. ### Pitch Since docker uses the container’s network to communicate, I think it has issues getting the real client’s IP address so it logs it’s internal docker IP at every connection. This IP is also the one sent in suspicious activity email (and the condition that triggers it). So I think this would be something to look into. Also, could be cool to have the location (country ou city) of the IP. ![IMG_6991](https://github.com/user-attachments/assets/abd9b5ca-bbfb-40a4-a9d1-378922670068)
OVERLORD added the feature label 2025-10-07 00:16:16 +03:00
Author
Owner

@stonith404 commented on GitHub:

Do you have a reverse proxy in front? If so, did you set the TRUST_PROXY environment variable to true?

@stonith404 commented on GitHub: Do you have a reverse proxy in front? If so, did you set the `TRUST_PROXY` environment variable to true?
Author
Owner

@edbourque0 commented on GitHub:

That was it, sorry about that.
Thanks!

@edbourque0 commented on GitHub: That was it, sorry about that. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#472