Exposing IIS Express to External Traffic

By default, web application hosted in IIS express can only be accessed locally (localhost) and it will block all external traffic.

What you need to do in order to expose IIS express web application to external traffic:

Configure HTTP.SYS

Run the following command in Command Prompt with Administrator privilege.

netsh http add urlacl url=http://my-w7-pc-dev:23880/ user=everyone

Where my-w7-pc-dev is name of the machine. You can’t customize this, it must be name of the machine.

This will basically add the mentioned URL to HTTP.SYS, a handler for HTTP requests.

Edit Site Settings

Using Microsoft WebMatrix, edit Settings of the site to use the same URL you register to HTTP.SYS.

 

More about Configuring HTTP and HTTPS.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s