I got the following problem - I am trying to make a web service in PHP, which needs to find out from which IP the request was done and store it. Right now, code looks like this:
function postConnectionRequest($a,$b){
  // I need to get requester's IP here to store it.
  return 0;
}
 
$server=new SoapServer("test.wsdl");
$server->addFunction("postConnectionRequest");
$server->handle();
How can I get it? Searched for hours, cant find the way, maybe as I am returning to PHP after 15 years and thinking too much C#ish ;)
 
    