From d6f38adf638cdc7bb5b4d66224b11bbe56009740 Mon Sep 17 00:00:00 2001 From: Victor Dyotte Date: Sat, 11 Apr 2026 13:55:14 -0400 Subject: [PATCH] Correctly print that server is listening on 0.0.0.0 Correctly print that advertised address is 0.0.0.0 instead of localhost. localhost assumes that the server is not accessible to to the outside. While in reality 0.0.0.0 is the address being bind. This correctly points this out to the user. as per addr.sin_addr.s_addr = INADDR_ANY; --- pocket_tts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pocket_tts.cpp b/pocket_tts.cpp index 6b6b48a..3e94f2e 100644 --- a/pocket_tts.cpp +++ b/pocket_tts.cpp @@ -2289,7 +2289,7 @@ class TTSServer { return false; } - std::cout << "TTS Server listening on http://localhost:" << port_ << "\n"; + std::cout << "TTS Server listening on http://0.0.0.0:" << port_ << "\n"; std::cout << "Endpoints:\n"; std::cout << " POST /v1/audio/speech - OpenAI-compatible TTS (JSON: {\"input\": \"...\", \"voice\": \"...\"})\n"; std::cout << " POST /tts - Streaming TTS (JSON: {\"text\": \"...\", \"voice\": \"...\"})\n";