Bad Request - Invalid Hostname IIS7

后端 未结 15 2174
一个人的身影
一个人的身影 2020-12-05 03:53

When I try to hit my web app on port 8080 I get the following error

Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is inval

15条回答
  •  一整个雨季
    2020-12-05 04:20

    This page by Microsoft describes how to set up access to IIS Server Express from other computers on the local network.

    In a nutshell:

    1) from a command prompt with admin privileges:

    netsh http add urlacl url=http://[your ip address]:8181/ user=everyone
    

    2) In Windows Firewall with Advanced Security, create a new inbound rule for port 8181 to allow external connections

    3) In applicationhost.config, in the node for your project, add:

    Do NOT add (as was suggested in another answer):

    The above wildcard binding broke my access from http://192.168.1.6:8181/

提交回复
热议问题