Viewing my IIS hosted site on other machines on my network

前端 未结 11 1586
情话喂你
情话喂你 2020-12-02 05:59

At home I have a simple network setup containing 2 machines.

On one machine i have a site hosted with IIS7. Rather than the standard localhost/index.htm

相关标签:
11条回答
  • 2020-12-02 06:04

    As others said your Firewall needs to be configured to accept incoming calls on TCP Port 80.

    in win 7+ (easy wizardry way)

    1. go to windows firewall with advance security
    2. Inbound Rules -> Action -> New Rule
    3. select Predefined radio button and then select the last item - World Wide Web Services(HTTP)
    4. click next and leave the next steps as they are (allow the connection)

    • Because outbound traffic(from server to outside world) is allowed by default .it means for example http responses that web server is sending back to outside users and requests

    • But inbound traffic (originating from outside world to the server) is blocked by default like the user web requests originating from their browser which cannot reach the web server by default and you must open it.

    You can also take a closer look at inbound and outbound rules at this page

    0 讨论(0)
  • 2020-12-02 06:05

    First of all, try to connect to the LAN IP of your server. If IIS is set up with only one web site, chances are that your site is going to pop up.

    If you want to access it by name, you would have to add an entry in the HOSTS file of every client PC you want to view the site with (not to 127.0.0.1 obviously, but to the local IP address of your server).

    Also, your Firewall needs to be configured to accept incoming calls on Port 80.

    This is usually the point where it makes more sense to set up a DNS service that you can register names like "mysite.dev" with centrally, without having to dabble with hosts files. But that's a different story, and belongs to superuser.com or serverfault.com.

    0 讨论(0)
  • 2020-12-02 06:05

    You have to do following steps.

    Go to IIS ->
    Sites->
    Click on Your Web site ->
    In Action Click on Edit Permissions ->
    Security ->
    Click on ADD ->
    Advanced ->
    Find Now ->
    Add all the users in it ->
    and grant all permissions to other users ->
    click on Ok.

    If you do above things properly you can access your web site by using your domain.
    Suggestion - Do not add host name to your site it creates problem sometime. So please host your web site using your machines ip address.

    0 讨论(0)
  • 2020-12-02 06:06
     Control Panel>System and Security>Windows Firewall>Allowed Programs-> then check all " World Wide Web Services(Http) tab". 
    

    Its worked for me

    0 讨论(0)
  • 2020-12-02 06:16

    It might be late, but for any other person who may get such an issue in future, for any connections you want to make to the server (in this case the machine that hosts the web application, regardless if it is iis or xampp) you need to allow connection or traffic through the specific port that will be used in the firewall

    1. Go to Windows Firewall -> Advanced settings
    2. Click Inbound Rules -> Then New Rule
    3. Select Port -> Next
    4. Specific local ports -> Add the Port you want to allow
    5. Allow All Connections
    6. Enter a name and a description for to help you remember later on
    

    and you Done

    0 讨论(0)
  • 2020-12-02 06:18

    If you're hosting website on a specific port in IIS like 4321 then you'd have to allow this port through Windows Firewall too. Here're the steps that I followed along with the imanabidi's answer to get it work for me:

    1. Windows Firewall > Advanced settings
    2. Inbound Rules > New Rule
    3. Select Port > Next
    4. Specific local ports > Add the Port you want to allow
    5. Allow All Connections
    6. Enter a name and some description so that you remember it later on
    7. Done
    0 讨论(0)
提交回复
热议问题