text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

The url http://127.0.0.1:7860 cannot be opened in local browser

Open rabeisabigfool opened this issue 1 year ago • 6 comments

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

*

rabeisabigfool avatar Apr 10 '23 02:04 rabeisabigfool

that's a server issue, this is local so we couldn't replicate your issue

try running with --share ?

BarfingLemurs avatar Apr 10 '23 02:04 BarfingLemurs

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.

Andorek avatar Apr 10 '23 04:04 Andorek

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...

JohnWJarrett avatar Apr 11 '23 00:04 JohnWJarrett

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.

Wolvensdale avatar Apr 11 '23 12:04 Wolvensdale

I have the same problem when i run stable diffusion in remote server.

Akmpfen avatar Apr 26 '23 10:04 Akmpfen

https://github.com/oobabooga/text-generation-webui/blob/main/docs/WSL-installation-guide.md#bonus-port-forwarding

azumukupoe avatar May 01 '23 16:05 azumukupoe

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.

Tempaccnt avatar Jul 22 '23 11:07 Tempaccnt

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

MuazAshraf avatar Aug 03 '23 17:08 MuazAshraf

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.

github-actions[bot] avatar Oct 09 '23 23:10 github-actions[bot]

try this way, it works ./start_linux.sh --share --listen

yuimo avatar Apr 09 '24 11:04 yuimo

@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

ControllableGeneration avatar May 01 '24 18:05 ControllableGeneration