-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[BUG/Help] 我可以使用我自己的公网ip吗 #341
Comments
我这边Linux,使用socat转发公网入端口到localhost对应端口 正确做法是更改其中的python webui启动参数(我并不会) |
其中 --server.serverAddress 我没用过不确定,请自己验证。 按照你的需求只需要将server_name 或 serverAddress 设置为你的主机ip(不要设置能0.0.0.0或127.0.0.1,这个只能本机访问)就行。如果你是公司内的服务器可能还需要设置nginx等 |
gradio需要使用https,建议参考binary-husky/gpt_academic#155 (comment) |
demo.queue().launch(share=True, inbrowser=True, server_name='0.0.0.0', server_port=8080) |
有用,谢谢 |
Is there an existing issue for this?
Current Behavior
在使用web_demo.py时
我没找到成功修改/指定ip的方法
Expected Behavior
No response
Steps To Reproduce
在Anaconda中,运行了此项目
Environment
Anything else?
无
The text was updated successfully, but these errors were encountered: