Did you inspect the binding is IIS? (inetmgr.exe) It may not be registered to expropriate all hostnames ~ above 8080.
You are watching: Http error 400 the request hostname is invalid
For example, if you collection it up because that mysite.com:8080 and also hit it at localhost:8080, IIS will gain the request however not have a hostname binding to match so it rejects.
Outside the that, friend should inspect the IIS logs (C:inetpublogswmsvc#) top top the server and also see if you room seeing your request. Climate you"ll understand if that is a problem on your client or ~ above the server itself.
See more: American Factory Workers In Early Nineteenth-Century Textile Mills Largely Consisted Of
Step 1: add Inbound dominion of windows Firewall
Step 2: IIS or IIS Express
Add Bindings of IIS Manager
Add Bindings of IIS express (Visual Studio)
In applicationhost.config, find by the port number (for my case is 57976), climate one more binding with your IP resolve
Updated:For windows 10 or intuitive Studio 2015 users,you may get the error post below:
Unable to launch the IIS Express net server, failed to it is registered URL, accessibility is deniedSolution:Close visual Studio Right click Visual Studio > operation asAdministrator