プログラミングガール

Developing a better me

IISを起動し、外部からのアクセスを許可する

1) appliationhost.config内のbindingを変更する
 54858:ポート番号

  <binding protocol="http" bindingInformation="*:54858:*"><br>
  < binding protocol =" http" bindingInformation="*:54858:localhost" />
 ファイルの場所: C:\Users\Username\Documents\IISExpress\config\applicationhost.config


2) 空間予約をする
 ex) netsh http add urlacl url=http://*:54858/ user=Everyone

3) FireWallの詳細設定から、外部からのアクセスを許可する設定を作成
 ex) 受信の規則
  ローカルのポート:特定のポート(54858)
  リモートのポート:全て

参考URL:http://blog.binarybits.net/applications/iis-express-http-error-400-the-request-hostname-is-invalid/