-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
阿里云等一些vps的IP获取问题 #14
Comments
如果你有能力,你可以修改一下brook-web.py的最后一行代码,改为 app.run(host='你的内网ip', port=default_port, debug=debug) |
你好,修改之后启动服务报错了。
|
试一下 127.0.0.1 或者 0.0.0.0 |
你好,感谢你的回复,把host=改成0.0.0.0有效,服务能正常启动。 |
不客气,欢迎分享这个项目给你的朋友们 |
怎么让Brook web显示谷歌云的外网IP |
curl ipv4.icanhazip.com |
手动设置host ip 无法启动进程 |
把host=改成0.0.0.0有效 netstat 也看到tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN |
from urllib2 import urlopen |
阿里云等一些vps的ifconfig里面显示的是内网IP并不是外网IP。
所以自动生成部署的时候似乎会把IP指定成外网IP。
The text was updated successfully, but these errors were encountered: