Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Allows IISExpress site to be externally accessed (e.g. by VM or iOS device)
:: NOTE needs to be elevated
@set /p HTTP_PORT=Enter Port number [e.g. 10082]:
netsh http add urlacl url=http://*:%HTTP_PORT%/ user=everyone
netsh http add urlacl url=http://localhost:%HTTP_PORT%/ user=everyone
netsh http add urlacl url=http://%COMPUTERNAME%:%HTTP_PORT%/ user=everyone
netsh http add urlacl url=http://%COMPUTERNAME%.local:%HTTP_PORT%/ user=everyone

This comment has been minimized.

Copy link

kiquenet commented May 8, 2015

How elevated add urlacl.cmd programmatically (scripting) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.