I have unmanaged VPS server. I am trying to get client IP form PHP $_SERVER['REMOTE_ADDR']
but it's always gives me same for all users that is server internal IP.
I have done some R & D and got firewall on server doing this, then I checked same on my another VPS server, but here it's giving correct client IP. Now I am sure there will be some configuration settings on my first VPS also that can give me correct client IP.
Please let me know what configuration I have to do on server to get this.
EDIT -
Once difference I have noted -
On VPS 1 where it's having non-standard ssh port 27560. Other can be accessed by port 22.I am not sure it this is creating problem here. Please suggest.