Skip to content

Passing correct external remote address (REMOTE_ADDR or HTTP_X_REAL_IP) to webservers behind the proxy #4196

Answered by filmo
filmo asked this question in Q&A
Discussion options

You must be logged in to vote

I'm a dope. I was testing from within the internal LAN. When I tested from an externally device with it's own IP address it works as expected.

When I pinged my test script on the webserver from client on the external internet, the HTTP_X_REAL_IP was set correctly. When testing from machines on my internal LAN, the router was not passing my test machines IP address.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by filmo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant