Jürgen Steinblock
Jürgen Steinblock

Reputation: 31743

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 configless approach to allow external connections to iisexpress.

Upvotes: 2

Views: 2009

Answers (1)

Ira Rainey
Ira Rainey

Reputation: 5209

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

Upvotes: 1

Related Questions