-
How to get socket remote address from loader request |
Beta Was this translation helpful? Give feedback.
Answered by
kiliman
Apr 10, 2022
Replies: 1 comment 1 reply
-
That's not really a Remix question. You need to get that from your platform provider. Typically they would set a header like Here's a helper function that checks several different headers. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sergiodxa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's not really a Remix question. You need to get that from your platform provider. Typically they would set a header like
X-Client-IP
orX-Forwarded-For
.Here's a helper function that checks several different headers.
https://github.com/sergiodxa/remix-utils#getclientipaddress