How can i reach user ip on +page.server.js or/and +layout.server.js #11480
-
Hello, i'm an open source contributor who developed several liblaries especially for node.js. I want to be able to reach user ip on server side and i don't know how to do that. So how can i reach users ip address on page.server.js and layout.server.js? An also is there any middleware mechanism in this framework which i could reach both request and response objects? |
Beta Was this translation helpful? Give feedback.
Answered by
Angus-Paillaugue
Jan 5, 2024
Replies: 1 comment
-
Hi, if I am not mistaking, you can use the
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Necoo33
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, if I am not mistaking, you can use the
e.getClientAddress()
function on a server function that returns the client ip adress :