Public access local IIS server

I have an ASP.NET application which uses the local IIS server.

the url is the following:

http://localhost/myasp/

It's working properly.

If I replace the localhost with 127.0.0.1 ip address the app still working properly.

But if I check the ip address of my PC, for instance 122.33.21.23

and I try to use it instead of localhost, the internet explorer cannot display the page.

Should I use some special settings in IIS?

I use IIS7 and WIN 7.

Anybody can help me?

l.

Answers


You have to let IIS pass throw your firewall.

First you have to know the port on which your site is running. Usually your address is like 127.0.0.1:82, 82 being the port number. If is nothing it may be 80. To be sure, go to IIS manager, and in the left expand Sites, R click on your site, Edit Bindings, and you will see the port no.

Go to CP -> Windows Firewall -> Advanced settings -> Inbound Rules -> New Rule... Select port, TCP, your port number and a name. Also make sure that if you have another firewall, add an exception for it too, or disable it.

If you have a router, it should work for your network IP (like 192.168...). To enter on you site with you public IP you will also have to enable "Port forwarding" for your port, or try to connect directly to internet.


As RPM1984 commented it could be a binding issues on IIS7. You may also want to check your windows firewall to see if it is blocking access. You can test by disabling the firewall to see if it makes a different.


Need Your Help

JS - Hide div if cookie exists

javascript html dom cookies

Here, basically, I want to let a client show the div only once in 30 days. If no cookies are present the div would be shown, and when clicked, the div would do something, irrelevant here, and then...

Project a point on a rectangle perimeter in Objective-C

objective-c geometry cgrect cgpoint

I am struggling to find a simple way to get the coordinates of a CGPoint projected on a CGRect perimeter.