text-generation-webui
text-generation-webui copied to clipboard
The url http://127.0.0.1:7860 cannot be opened in local browser
Describe the bug
Run server.py on a remote server, the url http://127.0.0.1:7860 cannot be opened in local browser.
Is there an existing issue for this?
- [ ] I have searched the existing issues
Reproduction
Run to the following steps at the terminal:
......... Loaded the model in 14.64 seconds. Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True
in launch()
.
Screenshot
Logs
*
System Info
*
that's a server issue, this is local so we couldn't replicate your issue
try running with --share ?
I'm having the same issue using WSL2. So far using the gradio link from --share or using something like TavernAI with the api extension works, but I can't connect using my local ip, or from another device using --listen and my ipv4 address.
Just a side note, 127.x.x.x is for local computer, 192.168.x.x is for local network, if that helps at all... Also, if the remote is on the Local Network, it'd probably be adessed at say "192.168.0.3:7860" or something like that...
This usually happen due to lack of vram. Try to load a lower end model like 2.7b and such, probably you'll be able to enter with ease.
I have the same problem when i run stable diffusion in remote server.
https://github.com/oobabooga/text-generation-webui/blob/main/docs/WSL-installation-guide.md#bonus-port-forwarding
when I tried going to 127.0.0.1:7860 on Opera GX I was redirected to this page. however, using edge I could access the address without issue.
I deploy text-generationwebui on a remote server but when I run python server.py i get: Running on local URL: http://127.0.0.1:7861
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.
Also please ensure that your antivirus or firewall is not blocking the binary file located at: /home/mojo/miniforge3/envs/textgen/lib/python3.10/site-packages/gradio/frpc_linux_aarch64_v0.2
I edit server.py file in launch function(share=true, server_name='0.0.0.0', server_port=7860)
I also tried with nginx: sudo nano /etc/nginx/sites-available/default server { listen 80; server_name 209.73.86.100;
location / {
proxy_pass http://localhost:7860;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
} nginx -t is successfull but when I run http://127.0.0.1:7860 it says localhost 127.0.0.1 refused to connect I dont know what is the issue. Please help me out
This issue has been closed due to inactivity for 6 weeks. If you believe it is still relevant, please leave a comment below. You can tag a developer in your comment.
try this way, it works ./start_linux.sh --share --listen
@abidlabs has answer to this:
in order to run Gradio on a remote jupyter notebook, you will need to use SSH forwarding to forward the port that Gradio is running to a port on to your local machine (by default, Gradio starts running on 7860, then 7861, etc.) and then open that local port in your browser, and Gradio should show up.
You can see more in this discussion here: https://github.com/gradio-app/gradio/issues/700#issuecomment-1445216680