XTTS Provider Address cannot be localhost or 0.0.0.0
I fought with this for DAYS.
Running Ubuntu Server, I host Oobabooga, SillyTavern, XTTSv2, and ComfyUI (Stable Diffusion) on a single machine. All APIs currently set up (except this one) run through http://localhost:[PORT] or http://0.0.0.0:[PORT]. Every single configuration I tried while hosting XTTSv2 refuses to connect via either of these addresses. However, when using http://192.168.254.165:8020 rather than localhost, 127.0.0.1, or 0.0.0.0, the API connects successfully.
I am running the server with the following flags:
`~/xtts-server$ python -m xtts_api_server -hs 0.0.0.0 --listen
2025-12-09 08:25:26.995 | INFO | xtts_api_server.server:<module>:73 - Model: 'v2.0.2' starts to load,wait until it loads
2025-12-09 08:25:37.950 | INFO | xtts_api_server.tts_funcs:load_model:190 - Pre-create latents for all current speakers
2025-12-09 08:25:37.950 | INFO | xtts_api_server.tts_funcs:create_latents_for_all:270 - Latents created for all 0 speakers.
2025-12-09 08:25:37.950 | INFO | xtts_api_server.tts_funcs:load_model:193 - Model successfully loaded
INFO: Started server process [3026]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8020 (Press CTRL+C to quit)
INFO: 192.168.254.188:39318 - "GET /docs HTTP/1.1" 200 OK
INFO: 192.168.254.188:39318 - "GET /openapi.json HTTP/1.1" 200 OK
INFO: 192.168.254.188:38890 - "GET /speakers HTTP/1.1" 200 OK`
This is the only **functioning** configuration I can come up with, and it'll work, for now, but I'd like to get rid of the loopback.
<img width="529" height="772" alt="Image" src="https://github.com/user-attachments/assets/ce240b1c-b544-4fd4-a650-c5b9ae8a0107" />
0 条评论