【解决方法】Visual Studio 2017 使用Ngrok 报错 Bad Request - Invalid Hostname

简介: 网站打开 https://ngrok.com/ 进行注册,我使用github账号进行登录注册后,下载对应的客户端。然后进行 授权:建议使用管理员打开 ngrok.exe文件ngrok authtoken [授权码]然后启动ngrok http 80这样ngrok就会给你的80端口分配一个外网地址。

网站

打开 https://ngrok.com/ 进行注册,我使用github账号进行登录

注册后,下载对应的客户端。

然后进行 授权:
建议使用管理员打开 ngrok.exe文件

ngrok authtoken [授权码]

然后启动

ngrok http 80

这样ngrok就会给你的80端口分配一个外网地址。

然后可以从本地的 http://localhost:4040 进行访问

如果我们的项目端口号为 6523,
那么进行授权的命令就是:

ngrok http 6523

但是运行后,报错。

img_78dd729d2ccfd0e1475c2ca00006b344.png
Paste_Image.png

解决方法为:

ngrok http 6523 -host-header="localhost:6523"

END

目录
相关文章
|
6月前
|
Web App开发 安全 网络安全
关于 Chrome 开发者工具 Network 面板里观察到的 net ERR_CERT_AUTHORITY_INVALID 错误
关于 Chrome 开发者工具 Network 面板里观察到的 net ERR_CERT_AUTHORITY_INVALID 错误
191 0
Mac Source Tree拉代码报错,remote: CODING 提示: Authentication failed. remote: 认证失败,请确认您输入了正确的账号密码。 fatal...
Mac Source Tree拉代码报错,remote: CODING 提示: Authentication failed. remote: 认证失败,请确认您输入了正确的账号密码。 fatal...
1468 0
Mac Source Tree拉代码报错,remote: CODING 提示: Authentication failed. remote: 认证失败,请确认您输入了正确的账号密码。 fatal...
|
开发工具 git
fatal: unable to access ‘https://github.com/.../.git‘: Could not resolve host: github.com解决方法【亲测有效】
1.问题原因 今天在使用Github的时候突然出现了这样的报错,云里雾里,看了网上的解决办法,说是代理服务器的问题,尝试了无数遍无果 然后Ping了一下github网站,发现Ping不通:
1304 0
|
10月前
|
Python
win10下 Anaconda使用conda连接网络出现错误(CondaHTTPError: HTTP 000 CONNECTION FAILED for url)--Python安装外库遇见的问题
win10下 Anaconda使用conda连接网络出现错误(CondaHTTPError: HTTP 000 CONNECTION FAILED for url)--Python安装外库遇见的问题
188 0
win10下 Anaconda使用conda连接网络出现错误(CondaHTTPError: HTTP 000 CONNECTION FAILED for url)--Python安装外库遇见的问题
|
11月前
|
jenkins 持续交付 Go
iOS Jenkins打包报错401 Authentication credentials are missing or invalid.解决办法
iOS Jenkins打包报错401 Authentication credentials are missing or invalid.解决办法
164 0
|
安全 网络安全
[windows10]下Bad owner or permissions on .ssh/config的解决办法
[windows10]下Bad owner or permissions on .ssh/config的解决办法
647 0
|
Apache
bugfree internal error
bugfree internal error
79 1
成功解决404 Not Found Not Found The requested URL was not found on the server. If yo
成功解决404 Not Found Not Found The requested URL was not found on the server. If yo

热门文章

最新文章