How to get user public IP address #2206
Unanswered
blueowlgreenfish
asked this question in
Q&A
Replies: 2 comments 7 replies
-
Are you using a reverse proxy? If so you need to check the headers it sets. |
Beta Was this translation helpful? Give feedback.
6 replies
-
I would like to have the client's remote address AND the targeted address (the one where axum runs on). There is a difference for me whether the caller called 127.0.0.1 or the public ip. Is that possible ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I checked discussion Get the client ip from a Request #968 .
I tried an example for
into_make_service_with_connect_info
.This returns
Hello 127.0.0.1
.It only returns local address and not a public IP address.
How can I return a public IP address?
Beta Was this translation helpful? Give feedback.
All reactions