Iis – Can only connect to IIS site through localhost

iisiis-7.5

I'm building a web service for my company's iPhone application, and everything's been working smoothly by running tests through localhost on the development machine. I'm now in the phase where I need to test connections from other computers within the network, and any connection other than localhost gives me a 404. My internal IP, 127.0.0.1, and computername all get 404 when connecting from any computer, either the one the site's hosted on or any others on the network. Telnet can get through to port 80, and I've temporarily disabled all firewalls on this machine (I do not have control over the external firewall, but I'm only testing connections within the network)

Does anyone have a clue why this is happening? I was able to connect to the web service from other computers when hosted on a Mac via Apache, but because I'm now using a SQL Server connection I'm restricted to using IIS for Windows Authentication. Googling only provided answers related to firewalls, and mine is disabled

note: I cannot use Anonymous Authentication, but even in testing that it did not affect the issue.

Best Answer

It's not real clear if you are running on a sever or a desktop. I'm assuming you are running on a desktop with Visual Studio. If that is the case, the built-in Visual Studio web server, "Cassini" does not accept remote connections AT ALL! Try downloading IIS Express or actually spinning up IIS on your machine instead, those will allow remote connections.

Aslo, your explanation of switching from Apache to IIS because of Integrated Authentication to the Database doesn't make much sense. Why not just use the MSSQL drivers for your language that support MSSQL? Here is the PHP site: http://blogs.msdn.com/b/sqlphp/

Provide more detail next time and you will get a better response.


UPDATE: Based on your clarifications the following is where I would start...

  1. Is the default website turned on? If so the default bindings there are *:80, so all requests on port 80 get served by the server. Test to make sure at a minimum you get the IIS Welcome page when accessing it remotely. If so then....
  2. Check the IIS Site Bindings, at it's simplest level make sure that your website/application accepts *:80, so all traffic on port 80. This will conflict with the default web site so turn that off first.

If that doesn't work you may have some underlying issues either with the firewall, double check it is truly off or has the HTTP excetion turned on and then I would look to DNS and or Network issues after that.