This is another case of me blogging something simply because I keep forgetting it..

Quick scenario: I want to use the localtest.me domain for a site on my local dev machine running in IISExpress (handy for a number of reasons). What do I need to do?

1. In ApplicationHost.config locate the site I’m interested in and add a new binding, changing myprefix and the port number as appropriate:

<binding protocol="http" bindingInformation="*:2744:myprefix.localtest.me" />

*Note: the config file is in c:\Users\you\Documents\IISExpress\config\ if you’re having trouble locating it.

2. From an elevated command prompt:

netsh http add urlacl url=http://myprefix.localtest.me:2744/ user=everyone

3. Restart IISExpress and browse to http://myprefix.localtest.me:2744 URL.

4. Slap self on forehead for forgetting yet again.

5. Job done. Get back to producing awesomeness!