Anonymous
TRIALOP
2 years ago
I have deployed my app using docker on Railway, my app takes the external ip address from the requests it gets and needs to save them to a database. However when saving the address it's a private IP address and that's not what i want
26 Replies
brody
EMPLOYEE
2 years ago
nope
brody
EMPLOYEE
2 years ago
not for long
brody
EMPLOYEE
2 years ago
please see the "request headers" section of this docs page
Status changed to Solved Railway • almost 2 years ago
brody
EMPLOYEE
2 years ago
read the right most value
brody
EMPLOYEE
2 years ago
railway is not going to be using envoy forever
ok, true, but there was a problem with clients being able to just set arbitrary value to X-Forwarded-For
brody
EMPLOYEE
2 years ago
^
brody
EMPLOYEE
2 years ago
^
brody
EMPLOYEE
2 years ago
read the right most value from that header and you will get the remote ip
brody
EMPLOYEE
2 years ago
no problem