Localhost Error 400
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Bad Request - Invalid Hostname Http Error 400. The Request Hostname Is Invalid.
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users bad request - invalid hostname localhost Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping bad request - invalid hostname iis each other. Join them; it only takes a minute: Sign up Bad Request- Invalid Hostname while connect to localhost via wifi from mobile phone up vote 17 down vote favorite 10 I get the Bad Request- Invalid Hostname
Bad Request (invalid Hostname) Iis 6
[HTTP ERROR 400] while trying connect my laptop's localhost. Actually, I am learning to develop mobile web using jQuery Mobile. I want to see the layout of the web whether fit my phone size. i have added the port number which given by the Visual Studio with this way: Control Panel> Firewall> Advanced Settings> Inbounce Rules> New Rule. Then, i get my IP address by typing "ipconfog" at Command Prompt. After that, I use my Android phone
What Does Bad Request Invalid Hostname Mean
browser (Mozilla 5.0) and enter the link 192.XXX.XXX.XXX:57976. I have read similar questions but I can't get the solution. Some people think this error is related to the IIS settings. But I can't get the solution of the IIS settings. Hope you guys can help me solve this problem. iis localhost share|improve this question asked Feb 26 '14 at 14:31 sky91 5501417 add a comment| 1 Answer 1 active oldest votes up vote 30 down vote accepted Step 1: Add Inbound Rule of Windows Firewall Open the Windows Firewall with Advanced Security. At the left panel, right click on Inbound Rule > New Rule Rule Type: Port Protocol and Ports: TCP Specific local ports: 57976 Action: Allow the connection Profile: Tick all (Domain, Private, Public) Name: Name, Description(optional) Finish. Step 2: IIS or IIS Express Add Bindings of IIS Manager Open the IIS Manager. At the left panel, Go to Sites > Default Web Sites. At the right panel, click on the Bindings. Then, the new dialog pop ups. At the pop-up dialog, click on the "Add" buttons. Input the port number and the hostname. For my case, port = 57976; hostname = 192.XXX.XXX.XXX (my IP address) Add Bindings of IIS Express (Visual Studio) Stop the current Site For Visual Studio 2015, change the IIS config under your project folder C:\Projects\
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us bad request invalid hostname error Learn more about Stack Overflow the company Business Learn more about hiring developers or
Bad Request - Invalid Hostname Iis7
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow http error 400. the request hostname is invalid. sharepoint 2013 Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Exposing localhost to the internet via tunneling (using ngrok): http://stackoverflow.com/questions/22044470/bad-request-invalid-hostname-while-connect-to-localhost-via-wifi-from-mobile-ph HTTP error 400: bad request; invalid hostname up vote 28 down vote favorite 17 From previous versions of the question, there is this: Browse website with ip address rather than localhost, which outlines pretty much what I've done so far...I've got the local IP working. Then I found ngrok, and apparently I don't need to connect via the IP. What I am trying to do is expose http://stackoverflow.com/questions/30535336/exposing-localhost-to-the-internet-via-tunneling-using-ngrok-http-error-400 my website running on localhost to the internet. I found a tool that will do this: ngrok. Running the website in visual studio, the website starts up on localhost/port#. I run the command "ngrok http port#" in the command line. Everything seems to start up fine. I generate a couple of URLs, and the ngrok inspection url (localhost:4040) works. The only problem is that when I go to the generated URLs, I get an HTTP error 400: bad request invalid hostname. This is a different error than when I run "ngrok http wrongport#", which is a host not found error...so I think something good is happening. I just can't tell what... Is there a step I am missing in exposing my site to the internet via the tunneling service? If there is, I can't find it in the ngrok documentation. asp.net visual-studio-2012 asp.net-web-api iis-express ngrok share|improve this question edited Mar 24 at 14:28 asked May 29 '15 at 17:09 bordeo 1,864721 add a comment| 2 Answers 2 active oldest votes up vote 70 down vote accepted Troubleshot this issue with ngrok. Apparently, some applications get angry when they see a different host header than expected. Running the following command should
360 games PC games https://support.microsoft.com/en-us/kb/842693 Windows games Windows phone games Entertainment All Entertainment Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet bad request Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All bad request - Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft