rgilchrist
10-15-2010, 03:31 AM
Hi
How do I obtain the IP Address of an external request after they have passed thru an IN gateway?
We have a webserver sitting behind an IN gateway, which is running a LAMP setup. When we view the $_SERVER['REMOTE_ADDR'] for a clients request, it gives the internal IP Address of the IN gateway e.g.10.96.2.26.
In other setups where we have replaced the IN gateway with an INSSL gateway, we have accessed the external IP address using the variable $_SERVER['HTTP_X_FORWARDED_FOR'], but this variable is not being set on the IN gateway setup.
Cheers
Rob
How do I obtain the IP Address of an external request after they have passed thru an IN gateway?
We have a webserver sitting behind an IN gateway, which is running a LAMP setup. When we view the $_SERVER['REMOTE_ADDR'] for a clients request, it gives the internal IP Address of the IN gateway e.g.10.96.2.26.
In other setups where we have replaced the IN gateway with an INSSL gateway, we have accessed the external IP address using the variable $_SERVER['HTTP_X_FORWARDED_FOR'], but this variable is not being set on the IN gateway setup.
Cheers
Rob