0

I am trying to set up an Ad Hoc network between my PC running Vista and my Macbook running Leopard. It's not just the Ad Hoc network though. I have Visual Studio Developer Express and SQL Studio Express running on the PC. When I launch a web service on localhost from Visual Studio, I want the Mac to be able to access the web service on my pc (localhost). I am accessing the web service on the mac through the iphone simulator in xcode.

Basically, I am trying to access my Vista localhost web service from the iphone simulator in xCode on my mac over an ad hoc wireless network.

I tried setting up the ad hoc wireless network, but I can't even access the web service in Firefox on the mac using : http://(ipadress):(port)/webservice.asmx

At this point the Mac has not even shown up in my network on the PC.

Can anyone point me in the right direction or let me know if this is even possible? Do I have to disable firewalls possibly?

Thanks

Bryan
  • 149
  • 1
  • 3
  • 10

1 Answers1

1

It shouldn't be a problem - by default in an ad-hoc environment where you are not running a DHCP server or setting static ip's the systems should both end up with automatically assigned private ip-addresses in the link-local address range ( 169.254.0.0/16 subnet for ipv4 )and should be able to communicate. If your systems connect to each other at the physical layer but don't end up with ipv4 addresses in this range then one or other of the relevant zero-configuration services are probably disabled.

I'd be surprised if you didn't have to disable the client firewall on the target (Windows Vista) System. This is exactly the sort of casual connectivity that the Windows Firewall is intended to block unless you explicitly tell it not to.

In a Windows environment systems broadcast based NetBIOS name resolution mechanisms will kick in (provided they are enabled and the systems are configured to treat the ad-hoc network as trusted rather than public). I believe MAC OS X also supports NetBIOS name resolution but I don't know if it is enabled by default.

Apple's Bonjour and SSDP\UpNP on Microsoft systems provide more general purpose\robust name resolution services in link-local setups. You can install a Windows Bonjour client to make it easier for the systems to find each other

Helvick
  • 19,579
  • 4
  • 37
  • 55
  • I downloaded bonjour for windows and changed the settings on my PC to disable the local firewall. I get an ip-address in the range you specified on both machines and I can resolve the mac server in firefox through http://name-macbook.local/ . However, I still cannot accomplish my goal of accessing the pc localhost on my mac. Any more suggestions? You have helped so much already. – Bryan Oct 24 '09 at 18:40
  • Are you sure that the web service in question is listening on the ad-hoc IP address of the Wireless interface of the PC? Can you ping the PC from the Mac (you should be able to if the Firewall is off)? If you can then share a folder on the PC and you should be able to map to it from the Mac by following these instructions: support.apple.com/kb/HT1568 If that works then your problem is definitely with the web service on the PC not binding to the link-local address, possibly restarting whatever app\service manages it might help but you may need to explicitly configure it also – Helvick Oct 24 '09 at 19:09
  • Wow! I am almost there! I was about to post back and say that the ip did not resolve, but when I seemingly switched my mac and pc wireless connections from the Ad-Hoc back to my internet wireless network, the ip resolved. So the ad-hoc network must persist.. Now I can find the root of localhost from the mac firefox browser, but I can't get to the port(?) my web service is on. I am trying to access http://localhost:49973/BaseballWebService/ using http://192.168.0.199:49973/BaseballWebService/ but nothing. http://localhost/ resolves fine. Any more suggestions? Thanks so much! – Bryan Oct 24 '09 at 20:35
  • Here is what I figured out: http://localhost/ and http://192.168.0.199/ both resolve to the same page. But http://localhost:49973/BaseballWebService/Service.asmx resolves the web service and http://192.168.0.199:49973/BaseballWebService/Service.asmx cannot find the webservice. FYI localhost redirects to localhost/xampp/ Could that be a problem? – Bryan Oct 24 '09 at 20:57