Using IIS Express to host a website (temporarily)

后端 未结 6 1344
萌比男神i
萌比男神i 2020-11-30 17:20

I have a website (MVC3), which for developement is hosted in IIS Express. (I\'ve run into a bug of Cassini Devserver and had to upgrade...) Now, I\'m wondering, is it possib

6条回答
  •  無奈伤痛
    2020-11-30 17:59

    I believe there are three steps to making this succesful:

    1) Add a dns entry or hosts entries so other machines can lookup the dev machine's ip address

    2) Add a binding to applicationhost.config in %userprofile/documents/IISExpress/Config like so

    
                    
                        ...
                        
                    
                
    

    3) Run the command found here to allow incoming requests:

    netsh http add urlacl url=http://yourmachinendnsname:yourport#/ user=everyone
    

提交回复
热议问题