メモ。
Windows 7以降の場合
netsh http add urlacl url=http://hogehoge.sample:8080/ user=everyone
みたいな感じで管理者としてコマンドを実行してホストするFQDNとポートを全ユーザーに許可します。
あとはVisual Studioのプロジェクトの設定でIIS Expressを上記FQDNでホストするように設定すればいいはず。怒られたら %USERPROFILE%\My Documents\IISExpress\config\applicationhost.config を編集しましょう。
<site name="DevWeb" id="9999"> <application path="/" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="C:\application-no-path" /> </application> <bindings> <binding protocol="http" bindingInformation="*:8080:hogehoge.cample" /> </bindings> </site>
カテゴリー:Tips Tagged: IIS, IISExpress, Visual Studio
