Viewing my IIS hosted site on other machines on my network

前端 未结 11 1585
情话喂你
情话喂你 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: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.

提交回复
热议问题