Skip to content

[Bug] Can't Expose the Program to the Local Network #1032

@Mayonnaisu

Description

@Mayonnaisu

I want to access the program via localhost on my phone on the same wifi, but the localhost isn't accessible except via port forwarding/tunneling or adb reverse, which I don't want. Then, after a lot of searching I found out that you have to bind the server to 0.0.0.0 instead of 127.0.0.1 to make it accessible from the phone.

When I tried using python main.py --host 0.0.0.0, I could access the program with my phone, but it's stuck at "Translation service is starting up, please wait a moment and try again." I have also tried to replace every single "127.0.0.1" with "0.0.0.0" in files inside the program folder, but it ended up the same.

LOG

C:\Users\user\manga-image-translator\server>python main.py --host 0.0.0.0
Nonce:
INFO:     Started server process [23600]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
[shared] Running in shared mode
[shared] Log file created: C:\Users\user\manga-image-translator\result\log_20250814210003.txt
INFO:     Started server process [18688]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit)
INFO:     127.0.0.1:63272 - "GET / HTTP/1.1" 200 OK
INFO:     192.168.1.4:40089 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO:     192.168.1.4:40115 - "GET / HTTP/1.1" 200 OK
INFO:     127.0.0.1:63375 - "POST /translate/with-form/image/stream/web HTTP/1.1" 200 OK

PC Screenshot

Image

Phone Screenshots

   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions