I want to fetch the local ip and proxy server address by php code.
$ipAddress = $_SERVER;
$localIpAddress = $HTTP_SERVER_VARS;
omick16. PHP Server runs off of a web server, aka apache. If your accessing it locally, it can be accessed by 'localhost'. As far as i know, there isn't a function available to tell you the IP address of the machine your running.