Getting the ip on a server page
Unanswered
Peterbald posted this in #help-forum
PeterbaldOP
how can this be done?
9 Replies
I dont think there is any way to do that unless you use the middleware or maybe possibly a third party library
PeterbaldOP
does next automatically add it to requests made from the server side or no
google is a great tool
@Peterbald, just pinging you because you might not have seen my message because I have message notifications off
PeterbaldOP
hmm this looks promising i did google it originally but the results varied
@SharpieMaster <@380099097790775316>, just pinging you because you might not have seen my message because I have message notifications off
PeterbaldOP
i got the "x-forwared-for" but its just localhost every time
PeterbaldOP
nvm chatgpt figured it out
for anyone wondering - the x-forwared-for header is provided by vercel using nginx this can be by setting a reverse proxy with this setting
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;