Description of problem: using $_SERVER['REMOTE_ADDR'] in a php script returns the server ip address not the address of the client. Version-Release number of selected component (if applicable): Package httpd-2.4.46-10.fc34.x86_64 is installed. How reproducible: Easy Steps to Reproduce: 1.install apache and php 2.create a simple php script that uses $_SERVER['REMOTE_ADDR'] 3. access the php page from a client computer Actual results: ip address of server Expected results: ip address of client Additional info:
It was because I had masquerading on the interface I was testing on.