When I am using ngrok
& run url given by ngrok with following configuration:
- my local url is :
localhost:8080/someexample
- my
ngrok
url is :http://f07d0862.ngrok.io/
it show this error:
Bad Request - Invalid Hostname HTTP Error 400.
When I am using ngrok
& run url given by ngrok with following configuration:
localhost:8080/someexample
ngrok
url is : http://f07d0862.ngrok.io/
it show this error:
Bad Request - Invalid Hostname HTTP Error 400.
Your web server is rejecting the request since it has different hostname.
Try ngrok http -host-header="localhost:8080"
-host-header="localhost:8080"
–
Aquatint --host-header="localhost:8080"
–
Wavellite This is the solution you want.
ngrok http 8080 -host-header="localhost:8080"
This worked for me:
ngrok http -host-header=localhost 8080
For me it was this
ngrok.exe http https://localhost:44315 --host-header=localhost:44315
This command works for me(note the double hyphen before host keyword):
ngrok http --host-header=localhost 48333
If getting -o flag something error try with double -
ngrok http 8080 --host-header="localhost:8080"
May be you should turn off your firewall.
That works for me.
© 2022 - 2025 — McMap. All rights reserved.