-
-
Save prabirshrestha/3743097 to your computer and use it in GitHub Desktop.
Allows IISExpress site to be externally accessed (e.g. by VM or iOS device)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: NOTE needs to be elevated | |
@set /p HTTP_PORT=Enter Port number [e.g. 10082]: | |
@rem install http://support.apple.com/kb/DL999 so you can access computername.local from mac | |
@rem https://github.com/cheetah/AlfredProxy | |
@rem Fiddler>options>Connections> check Allow Remote Computers to Connect | |
@rem browse http://ipv4.fiddler:1151/ | |
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 | |
netsh http add urlacl url=http://127.0.0.1:%HTTP_PORT%/ user=everyone | |
@pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<site name="WebSite1" id="1" serverAutoStart="true"> | |
<application path="/"> | |
<virtualDirectory path="/" physicalPath="C:\PathToWebSite" /> | |
</application> | |
<bindings> | |
<binding protocol="http" bindingInformation=":1151:localhost" /> | |
<binding protocol="http" bindingInformation="*:1151:pswin8mac.local" /> | |
</bindings> | |
</site> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<site name="WebSite1" id="1" serverAutoStart="true"> | |
<application path="/"> | |
<virtualDirectory path="/" physicalPath="C:\PathToWebSite" /> | |
</application> | |
<bindings> | |
<binding protocol="http" bindingInformation=":1151:localhost" /> | |
<binding protocol="http" bindingInformation="*:1151:pswin8mac.local" /> | |
</bindings> | |
</site> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in mac type "http://pswin8mac.local:1151/" in the browser