开发者

iisexpress: listen on external interface without modifying config file:

I want to run a WebService project with IISExpress and use the following command line to start it:

iisexpress.exe /path:c:\MyService /port:8000

That works, but the webserver is only accessible by http://localhost:8000/MyService.asmx

I know that I can modify the users applicationhost.config file to add my site and use

iisexpress.exe /site:MyService

to start it, but, if it's possible I would prefer to use the config开发者_开发问答less approach to allow external connections to iisexpress.


Have you modified HTTP.SYS to allow external traffic? Check these articles out for info on how to do that:

How to Expose IIS Express to External Network Connections

Serving External Traffic With WebMatrix

I've got mine serving up the site to external traffic fine, but I have modified the applicationhost.config file to do it. Then I have just created a .bat file to run the command:

"C:\Program Files\IIS Express\iisexpress.exe" /site:MySite
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜