views:

157

answers:

2

Hi - This is a bit complex - so here we go.

I am developing a mobile web application using asp.net mvc and I need to test it locally on my iPhone. So far I have the first iteritaion of the site running on my local dev laptop. I created a virtual dir for the site under IIS 7 on the same machine. I deployed the site to that folder from VS2008. I open a browser and entered "HTTP://localhost/mysite" and the site cam up just fine. I am runnig a home network with locked down WIFI and both the laptip and my iPhone are on the network. So now I want to test with the iPhone but the site won't come up when browsing to "HTTP://laptopname/mysite". I have another machine that is also on the network and I get this error message when attempting to browse to the site:

"Website (laptopname) is online but isn't responding to connection attempts"

I have a feeling that this has something to do with IIS setting and \ or application pools but have not been able to find anything relavent goolging. Any help appreciated.

+1  A: 

There are some possibilities:

  1. iPhone is not able to resolve your laptop by name. Try using the IP address of your computer in the URL instead.
  2. The firewall on the laptop is blocking inbound connections from other machines. Check your firewall.
  3. The IIS Website is configured with a host header localhost so it won't respond to requests to other hostnames. Check the binding for the Web site in the IIS Manager.

To eliminate possible network issues, you can create an ad hoc WiFi network on your PC and connect to that network to test.

Mehrdad Afshari
It was the firewwall - I tried allowing inbound connections on the local network but that did not work - so I turned it off and now I can test with the iPhine and the other computer. As soon as I finish a test - I turn it back on of course :) - thanks.
Jim Evans
A: 

Check that Allow Anonymous Access is set for the site

w4ik
Can not find this setting in IIS 7 Manager
Jim Evans
Glad you found the issue...here's how to configure anonymous access in IIS7 http://technet.microsoft.com/en-us/library/cc731244(WS.10).aspx
w4ik