Mac – Accessing PC localhost from Mac over WiFi

adhoc-networkdesktoplocalhostmacwifi

I have a web service running on the localhost of my PC. I set up an ad hoc local wifi network and I would like to access the web service from my Mac. Can this be done?

What would the url to my web service be? (http://localhost:49973/BaseballWebService/Service.asmx – insert static ip somewhere?)

Best Answer

It should be as easy as simply replacing the word 'localhost' with the IP or DNS address of your 'server' machine. That said you may have firewall rules, web server setup options etc. which could get in the way of this but it's worth trying first of all as it's so easy.