6 days ago
I expected X-Forward-For entry 0 (left-most value) to match X-Real-IP per https://station.railway.com/questions/x-real-ip-is-ipv4-for-ipv6-connections-259b3a48#p0f9:
On
X-Forwarded-For: [...] We can confirm entry 0 tracksX-Real-IP
Unfortunately, it does not.
Tests made with httpie (https://httpie.io/).
Endpoint is https://github.com/creativecommons/containers/pkgs/container/util-raw
Test 1 command:
http https://util-raw-production.up.railway.appTest 1 output:
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: plain/text; charset=UTF-8
Date: Fri, 13 Nov 2026 14:51:04 GMT
Server: railway-hikari
Transfer-Encoding: chunked
x-hikari-trace: zrh1.1vv1
x-railway-edge: zrh1
x-railway-request-id: 48G4EMaWQyeWQYzvYqdHTg
GET / HTTP/1.1
Host: util-raw-production.up.railway.app
Accept: */*
Accept-Encoding: gzip, deflate, zstd
User-Agent: HTTPie/3.2.4
X-Forwarded-For: 88.203.117.246, 212.102.36.194
X-Forwarded-Host: util-raw-production.up.railway.app
X-Forwarded-Proto: https
X-Railway-Edge: zrh1
X-Railway-Request-Id: 48G4EMaWQyeWQYzvYqdHTg
X-Real-Ip: 88.203.117.246
X-Request-Start: 1794581464785Test 2 command:
http https://util-raw.creativecommons.orgTest 2 output:
HTTP/1.1 200 OK
CF-RAY: a59e9ac65d7eb75e-MXP
Connection: keep-alive
Content-Type: plain/text; charset=UTF-8
Date: Fri, 13 Nov 2026 14:53:12 GMT
Server: cloudflare
Transfer-Encoding: chunked
cf-cache-status: DYNAMIC
x-hikari-trace: cdg1.8vsn
x-railway-edge: cdg1
x-railway-request-id: rrDO72jDQqm9WsYY63j4Ww
GET / HTTP/1.1
Host: util-raw.creativecommons.org
Accept: */*
Accept-Encoding: gzip, br
Cf-Connecting-Ip: 88.203.117.246
Cf-Ipcountry: MT
Cf-Ray: a59e9ac65d7eb75e-MXP
Cf-Visitor: {"scheme":"https"}
User-Agent: HTTPie/3.2.4
X-Forwarded-For: 172.69.9.12, 79.127.178.81
X-Forwarded-Host: util-raw.creativecommons.org
X-Forwarded-Proto: https
X-Railway-Edge: cdg1
X-Railway-Request-Id: rrDO72jDQqm9WsYY63j4Ww
X-Real-Ip: 88.203.117.246
X-Request-Start: 17945815921610 Replies
6 days ago
It looks like you already have a thread open about this: Simple solution to show request headers. We're automatically closing this one, and we'll reply to you there soon. If you have anything more to add about this topic, please post it in that thread.
Status changed to Duplicate Railway • 6 days ago