Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 769
user295541 Avatar asked Nov 11 '10 11:11

user295541


1 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.

like image 82
Dexter Avatar answered Oct 05 '22 22:10

Dexter