This probably applies to many other things while working with XAMPP or any webserver on your machine, but I specifically used it when using AJAX. Just determine your LAN/local/internal ip address and use that ip address as your domain name. For example, if this is what you had on another webserver,
var myDomain = "www.domainName.com/location/"; //where your proxy file is placed var proxy_name = "phpProxy.php"; //proxy's filename var actualReq = "http://search.yahoo.com/blablabla?=...." //actual request var url = "http://"+myDomain+proxy_name+"/?"+actualReq; httpRequest("GET",url,true,handleResponse); ...
and your local ip for example is 192.168.123.321, replace
www.domainName.com/
with
192.168.123.321/
Also, when you call the file from your browser, instead of using “http://localhost/….”, use “http://192.168.123.321/….” instead.
Happy XAMPPing!