Viewing my IIS hosted site on other machines on my network

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

    In addition to modifying your firewall, don't forget to add port binding too!

    Open $(SolutionDir)\.vs\config\applicationHost.config and find binding definitions, should be something like this

    
        
            
                
            
            
                
            
        
        ...
    
    

    Just add extra lines to reflect your machine IP and designated port

    
        
        
    
    

    Source: https://blog.falafel.com/expose-iis-express-site-local-network/

提交回复
热议问题