Client's real IP is missing from all headers
ikumasudo
PROOP

2 months ago

Related: Which header should I rely on for real client IP?

I previously asked which header to rely on for the real client IP. At that time, X-Forwarded-For contained the correct IP. However, today the situation has changed — none of the headers contain my actual global IP anymore.

What I see

Tested with curl against a whoami container on whoami-production-233c.up.railway.app:

- X-Forwarded-For: 157.52.121.86 (single IP — no comma-separated list)

- X-Real-Ip: 157.52.121.86

My actual global IP is 126.144.31.92— it appears nowhere. (157.52.121.86 belongs to Fastly 157.52.64.0/18 )

I'd expect X-Forwarded-For to be 126.144.31.92, 157.52.121.86, but only the Fastly IP is present.

Questions

  1. Is this an intentional change or a regression from recent infrastructure changes?
  2. Is there any other way to obtain the real client IP?
Solved

3 Replies

Status changed to Awaiting Railway Response Railway about 2 months ago


2 months ago

Acknowledging this issue, we have raised it to our networking engineer.


Status changed to Awaiting User Response Railway about 2 months ago


2 months ago

Hey,

This has been fixed, no action is needed on your end.

We are sorry for introducing this regression and will be more diligent about changes to the behavior of headers going forward.


ikumasudo
PROOP

2 months ago

Thank you !


Status changed to Awaiting Railway Response Railway about 2 months ago


Status changed to Solved ikumasudo about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...