-
|
How to get client ip address in loader or middleware? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Nov 3, 2025
Replies: 1 comment 1 reply
-
|
You need to read it from a request header, what headers may depend on where you deploy. You can use the getClientIPAddress utils from Remix Utils that tries to read from multiple headers, or returns |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hungtcs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to read it from a request header, what headers may depend on where you deploy.
You can use the getClientIPAddress utils from Remix Utils that tries to read from multiple headers, or returns
nullif it can't find one. If you know the header you will receive you can use that directly.