I am trying to make my MVC application accessible on other computers, specifically mac machines. This is my first time to run a site on IIS7 because I got used to the older version of IIS on winXP at work. While on this computer I just usually use VS2010’s development server.
I am using windows7 (64bit) and I want to access this site on a mac / other machines.
My site bindings setup are as follows:
Type: http
IP address: All Unassigned
Port: 80
Host name: http://www.thisisatest.com
ON MY MACHINE:
I can access http://www.thisisatest.com but not COMPUTERNAME/www.thisisatest.com or IPADDRESS/www.thisisatest.com which I think supposedly should work because I’ve done this many times in our office on winXP.
But I can access the IIS7 page with COMPUTERNAME/ or IPADDRESS/
ON ANOTHER MACHINE (MAC):
I’m getting the Server Not Responding error when I try to access IPADDRESS/
My firewall is already turned off and I’ve already added an Inbound Rule on my firewall to open all ports.
Questions:
1.Why can’t I access the site using COMPUTERNAME/www.thisisatest.com or IPADDRESS/www.thisisatest.com even on my own machine? This is weird because it is my own machine where my app is hosted.
2.What should I do to allow remote access? Does it matter if it’s a mac machine that I’m using to access the site?
Any ideas?
For that to happen your app should be set up in a folder called
www.thisisatest.com. Setting that host name in the app’s properties does not mean you access it throughhttp://IPADDRESS/www.thisisatest.com. It means IIS will only route those requests to the app if the address used by the client is of the formhttp://www.thisisatest.com/<querystring>. Any other request will not be fulfilled. Try to remove that setting, this should allow you to access the app viahttp://IPADDRESS/orhttp://MACHINENAME(on Windows). On a Mac only the IP variant would normally work (unless the IIS machine is resovlable through a DNS).Unless the port on which the website runs is blocked, the app should be accessible via IP. Of course there are other ways of blocking certain client IPs etc but if you didn’t alter any default settings then it should work.