Skip to content
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

127.0.0.1 refused to connect. after first successful relaunch #134

Open
abozahran opened this issue Feb 19, 2025 · 2 comments
Open

127.0.0.1 refused to connect. after first successful relaunch #134

abozahran opened this issue Feb 19, 2025 · 2 comments

Comments

@abozahran
Copy link

Image

@rzgarespo
Copy link

open the gradio_interface.py and change the 172.0.0.1 to 0.0.0.0, save & re-run python gradio_interface.py
in your browser: http://127.0.0.1:7860

@JosselinTD
Copy link

I encountered the same problem, even though gradio_interface.py was already configured to use 0.0.0.0.

I resolved it by modifying the docker-compose.yml file. Specifically, I changed network_mode to bridge and added a ports section, like this:

    network_mode: "bridge"
    ports:
      - "7860:7860"

After restarting the container, I was able to access the application using localhost:7860.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants