feat: auto-detect local IP on startup, update README access URL

- Add getLocalIP() to detect first non-loopback IPv4 address
- Startup log now shows accessible URL (e.g. http://192.168.1.4:8080)
- README: replace hardcoded localhost with auto-detected IP description
- Fallback to localhost if no network interface found
This commit is contained in:
ShukeBta
2026-05-17 00:17:00 +08:00
parent d10bc19e8e
commit dd8f2a466c
3 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ cd MediaStationGo
docker compose up -d
```
> 🌐 Open <http://localhost:8080> and log in with `admin` / `admin123`.
> 🌐 The server auto-detects your local IP on startup and logs the access URL (e.g. `http://192.168.x.x:8080`). Log in with `admin` / `admin123`.
### 💻 Bare Metal