We have got the client real IP behind the proxy using X-Forwarded-For.
But now the issue is that when we are calling a web service using simplexml_load_file, the server hosting the web service gets the IP of our server and not the real client server.
So we need a way to set the IP in X-Forwarded-For header so that the webservice gets the IP of the client that means it will feel that the client IP has called the webservice.
One possibility would be to start using
curlfor communication with the web service, so that you’d be able to set the header value