Next.js Discord

Discord Forum

What exactly is the value of `x-forwarded-for` header?

Unanswered
Giant Angora posted this in #help-forum
Open in Discord
Giant AngoraOP
I have been trying to find a way to get client's IP address and I had to use x-forwarded-for header. But it does not seem like it's a IPv4 address. Though I did get my IPv4 address as the last part of the colon seperated string. Can anyone confirm what exactly is the value of x-forwarded-for or better, help figure of how to get client's IP address


Thanks in advance

0 Replies