Skip to content

feat(network): use the server's local address automatically at home - #598

Merged
Quick104 merged 4 commits into
mainfrom
feat/local-network-route
Oct 15, 2026
Merged

Quick104 merged 4 commits into
mainfrom
feat/local-network-route

Conversation

@Quick104

@Quick104 Quick104 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #591
Related issue: Silo-Server/silo-server#1268
Validation tasks: none

At home, a signed-in phone or TV saved with the server's public URL, reverse proxy or tunnel still sends every request the long way round, through hairpin NAT or the tunnel's limits. The server counts those streams as remote and applies the remote bitrate limit. The Apple apps now switch to the server's local address on their own (Silo-Server/silo-apple#804); Android didn't.

Solution

The phone and TV apps now move their requests to the server's local address whenever it proves it is the server, and go back to the saved address as soon as it doesn't. This follows the server contract in Silo-Server/silo-server#2532 (docs/architecture/server-identity.md, "Local network TLS") and the rules the Apple reviews settled.

  • Trust. The app reads local_route from GET /api/v2/system/connections only over a saved HTTPS address with no path, on a client of its own that follows no redirect. A candidate is used only when TLS there presents exactly the pinned key and GET /api/v2/system/identity answers the saved server's identity. No other certificate is ever accepted for a candidate, probes follow no redirect, and every routed request checks the connection's key again before anything is written, so a pooled or resumed connection can't carry it to another key.
  • Candidates. The local origin that last worked and the admin-set address (local_route.url, or the private addresses its host name resolves to), each tried as https on the same port and only as an RFC 1918 IPv4 address. A host name is looked up only after the known addresses fail. Android doesn't browse _silo._tcp yet (feat(onboarding): list Silo servers found on the network and tailnet #460), so a server that relies on its LAN announcement alone needs Local network address set before Android uses it.
  • When it changes. Checks run in the foreground on Wi-Fi or Ethernet only; cellular never counts, and a VPN carries the transports beneath it, so a VPN over cellular doesn't either. Any network change drops the route until a candidate passes again. A failure on the route drops it at once and checks once more 5 s later, once per network change or foreground return, so an address that passes the check but fails real traffic doesn't cycle. A candidate that presents another key makes the app read the pin again at once, in case SECRET_KEY rotated. Nothing probes on a timer.
  • What moves. Only the transport: an OkHttp interceptor rewrites scheme, host and port and relabels the response, so Ktor's auth checks, Coil's cache keys, Media3's URL resolution and every stored URL keep the saved address. API requests, artwork and video move. A request that fails on the route goes again to the saved address when it can't have been sent or is a GET or HEAD; API and artwork bodies are read ahead before they're handed on, so a load that fails after its headers falls back too. A cancelled call, an interrupted read (how Media3 abandons a load on a seek) and a slow answer on a working connection leave the route alone.
  • Video. A stream takes the route it started on for its whole life, a remount included, so a stream never moves onto a route that appears later. When the route goes, the stream's next request goes to the saved address, so a load that can't reach the LAN, or a stream that dies there, carries on from the saved address without an error. Only video on the saved origin under /api/ moves.
  • Admission. The server picks a session's local or remote bitrate cap from the network POST /api/v2/playback/start arrives through, and replans keep it. So admission takes the route only when the stream's media may: Watch Party, casting and audiobooks are admitted on the saved address.
  • What stays. Sign-in and token refresh, network identity linking (the server accepts it only through the provider's own address), the realtime sockets, Watch Party (its API, socket and playback), downloads (their API and transfers), sidecar subtitles, audiobooks, the reader and casting stay on the saved address.
  • Visible change. The active server's row in the phone and TV server lists reads "Connected on your local network" while the route is in use.

Validation

Ran against a dev sandbox built from silo-server origin/main d94a97092, which includes Silo-Server/silo-server#2532. The saved address was an HTTPS reverse proxy with a publicly trusted certificate. The LAN address was a private IPv4 address the emulator reaches, forwarded at TCP level to the sandbox's API port so TLS ran end to end, and set as Local network address. Phone: Android 16 emulator (Wi-Fi plus a simulated LTE network). TV: Android TV 16 emulator (Ethernet).

  • Before (origin/main): the server lists show the saved address only, and the server counts a direct-play stream from the phone and from the TV as remote.
  • After: both server lists read "Connected on your local network", and the server counts the same stream as local on both. During phone direct play, the LAN connection carried about 107 MB while the saved address carried about 3 KB, only the playback control socket. A transcoded (HLS) stream played the same way, with about 54 MB of segments over the LAN. Its sidecar subtitle came from the saved address.
  • Leaving and coming home: killing the LAN path mid-stream dropped the route within a second on phone and TV. Direct play and HLS kept playing from the saved address without an error, and the status line cleared. Restoring the path and returning to the foreground brought the route back.
  • Seeking: five seeks during direct play on the route left it in use, and playback carried on from each new position.
  • Cellular: with Wi-Fi off, the phone's default network was LTE, which could still reach the LAN address. The route dropped and the app opened no connection to that address, including across a foreground return. Turning Wi-Fi back on brought the route back.
  • Impostor: a TLS server with the real server ID and its own key got a TCP connection, an aborted handshake and no HTTP request, both when set as the local address and when it took over the address of a route in use. In the second case the five requests in flight went to the saved address, and one check followed 5 s later; nothing probed after that.
  • Tests:
    • New LocalRouteTest and LocalRouteControllerTest (shared) and LocalRouteTransportTest (android-shared, MockWebServer over real TLS) cover the address rules, the controller's checks, fallbacks and retry limit, pin-only trust, a pooled connection whose key is no longer the pin, the retry rules, an interrupted read, auth paths, sockets and saved-address markers, media routing, and the pin read refusing a redirect. SequencedPlaybackTest covers admission staying on the saved address unless the stream's media may take the route.
    • ./gradlew testDebugUnitTest passes (5,915 tests).
    • The lint tasks in CONTRIBUTING.md pass, and both supply-chain scripts pass.
    • :androidApp:assembleDebug, :androidTvApp:assembleDebug and both release bundles build.
  • Not run live: a physical phone or TV on a home LAN, and VPN over cellular (the rule rests on Android reporting a VPN's underlying transports). The live runs used e78c012. The three later commits weren't run live. They keep the probes on HTTP/1.1, which the server's LAN listener already required. They admit Watch Party, casting and audiobooks on the saved address. And they re-read a rotated pin at once, look up a host name only after the known addresses fail, and re-check the active server after the sign-in lookup. They don't change the results shown.

Evidence: https://evidence.siloserver.org/r/silo-android/issue-591/

Risks

  • Every Silo API, artwork and player client now uses a trust manager and hostname verifier that defer to the platform's for every address that isn't pinned. Only the local address is pinned, so other HTTPS traffic keeps Network Security Config and system trust. This turns off OkHttp's HTTP/2 connection coalescing across host names on those clients.
  • A routed API or artwork response is read ahead, up to 2 MiB, before it's handed on.
  • Explicit reads of the saved address, such as the reachability probe, take the route too, with the GET fallback; Apple keeps them on the saved address.
  • Routing is opt-out: every request to the saved address moves unless it is a sign-in path, a WebSocket, or marked to stay. A future endpoint that depends on the network a request arrives through needs that marker.
  • Media on the route loses the server's sendfile path, since every byte is encrypted.

Follow-ups

AI disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; Codex in T3 Code for the plan review and background review
  • Model(s): claude-opus-5-5 (implementation, review finders and verification), claude-sonnet-5-5 (cleanup finder and validation check), gpt-6.1-sol (plan review and background review)
  • Involvement: Fully AI-generated; human verification is the review requested on this PR
  • Adversarial review:
    • Codex (gpt-6.1-sol) reviewed the plan before implementation. It kept transport-level routing and led to a key check bound to each routed request (so a pooled or resumed connection can't carry it to another key), bounded read-ahead for API and artwork, a route decision kept for a stream's whole life, Watch Party and download traffic kept off the route, and a cap on the TLS handshake. Its point about OkHttp's own retry was answered: the same client already retries those requests on the saved address.
    • A multi-agent review of the diff found that an interrupted read (a seek) dropped the route, that a failing address could cycle through checks, that a stored record of another deployment could be used, that failed candidates stayed pinned, that a foreground and background change could reach the controller out of order, and that network identity linking took the route. All are fixed, with tests where they apply.
    • A background Codex (gpt-6.1-sol) review of e78c012 found that Watch Party, casting and audiobook admission took the route, so the server capped those sessions as local while their media went through the saved address. Fixed, with a test.

🤖 Generated with Claude Code

Note

Add automatic local-network routing to the active server on Android

  • Introduces a LocalRouteController in shared code that learns a local route from the server's connections document, verifies candidates by TLS SPKI pin and server identity, and publishes the confirmed route to process-wide LocalRoutes state. Android wiring lives in LocalRouteStarter, started from both phone and TV app entry points.
  • An OkHttp interceptor and route-aware TLS (LocalRouteTls, PinOnlyTrustManager, PinningHostnameVerifier) rewrite eligible requests to the local origin while pinning the endpoint key. Repeatable GET/HEAD requests fall back to the saved address on route failure; unrepeatable mutations that may have arrived are not retried.
  • Route discovery requires an HTTPS saved root address, a signed-in account, and a Wi-Fi/Ethernet network without cellular transport. Records persist in a SharedPreferences store and are pruned when servers are removed.
  • Media playback can use the route via a route-generation marker recorded per media item in SiloPlayerFactory; Watch Party playback, downloads, sign-in, and Watch Together requests are explicitly kept on the saved address.
  • Server lists on phone and TV now show a home icon and status label for the locally routed server.
  • Behavioral Change: all Android OkHttp/Ktor/Coil clients created by the platform factories now take the active local route for eligible requests; auth, WebSocket, and explicitly marked requests stay on the saved address. Failed or key-mismatched routes are dropped immediately with one delayed retry per trigger.

Macroscope summarized 6c9f362.

A signed-in phone or TV now sends its requests to the server's address on
the local network whenever that address proves it is the server, and goes
back to the saved address as soon as it doesn't. The app reads the key the
server presents on its API port from GET /api/v2/system/connections, over
the saved HTTPS address and without following redirects, and uses a private
IPv4 address (the admin-set local address, or the one that last worked) only
when TLS there presents that key and the identity check answers the saved
server.

Only the transport moves: an OkHttp interceptor rewrites scheme, host and
port and relabels the response, so auth checks, caches, URL resolution and
stored URLs keep the saved address. API requests, artwork and video move.
A request that fails on the route drops it at once and goes again to the
saved address when it can't have been sent or is a GET or HEAD. A stream
keeps the route it started on, and continues from the saved address when
that route goes. Sign-in and refresh, sockets, Watch Party, downloads,
sidecar subtitles, audiobooks, the reader and casting stay on the saved
address.

Checks run in the foreground on Wi-Fi or Ethernet only, after every network
change and foreground return, and once more after a failure. The active
server's row in the phone and TV server lists reads "Connected on your local
network" while the route is in use.

Closes #591

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. label Oct 15, 2026
@silo-kody

silo-kody Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d0527adb-794b-46fd-930d-ada219597400
📥 Commits

Reviewing files that changed from the base of the PR and between a4dd216 and e78c012.

📒 Files selected for processing: 36
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadWorker.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/OfflineTrackAssetFetcher.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/network/LocalRouteStarter.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlayerOkHttpClient.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlayerFactory.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/VideoPlayerMediaMounter.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/VideoPlayerMediaSpec.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/network/LocalRouteTransportTest.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/SiloApplication.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/servers/ServerListScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/servers/ServerListViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/SiloTvApplication.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListViewModel.kt
  • proguard-rules.pro
  • shared/src/androidMain/kotlin/org/siloserver/silo/network/SiloHttpClient.android.kt
  • shared/src/androidMain/kotlin/org/siloserver/silo/network/SiloOkHttp.kt
  • shared/src/androidMain/kotlin/org/siloserver/silo/network/localroute/LocalRouteEnvironment.kt
  • shared/src/androidMain/kotlin/org/siloserver/silo/network/localroute/LocalRouteInterceptor.kt
  • shared/src/androidMain/kotlin/org/siloserver/silo/network/localroute/LocalRouteProbe.kt
  • shared/src/androidMain/kotlin/org/siloserver/silo/network/localroute/LocalRouteTls.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/WatchTogetherRealtimeClient.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/api/ExternalSignInApi.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/api/ServerIdentityApi.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/api/WatchTogetherApi.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/DownloadCreationV2Api.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/DownloadRegistryV2Api.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/localroute/LocalRoute.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/localroute/LocalRouteController.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/localroute/LocalRouteHeaders.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/localroute/LocalRouteOffers.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/localroute/LocalRouteState.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/network/localroute/LocalRouteControllerTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/network/localroute/LocalRouteTest.kt

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The change adds Android local-route discovery and TLS-pinned request routing. It integrates route selection with shared clients and media playback, marks selected requests to remain on the saved address, starts route monitoring in both Android applications, and displays active-route status in server lists.

Changes: Android Local Route

Layer / File(s) Summary
Route contracts and controller
shared/src/commonMain/kotlin/org/siloserver/silo/network/localroute/*, shared/src/commonMain/kotlin/org/siloserver/silo/network/api/ServerIdentityApi.kt, shared/src/commonTest/kotlin/org/siloserver/silo/network/localroute/*
Adds route and offer models, shared route state, controller logic, and decoding for the optional local_route response. Common tests cover route eligibility, candidate confirmation, and state changes.
Android probe and pinned transport
shared/src/androidMain/kotlin/org/siloserver/silo/network/localroute/*, android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/network/LocalRouteTransportTest.kt, proguard-rules.pro
Adds Android route persistence and probing, TLS pin checks, request rewriting and fallback, and transport tests. A ProGuard rule preserves the pinning trust-manager method.
Lifecycle and network eligibility
android-shared/src/androidMain/kotlin/org/siloserver/silo/common/network/LocalRouteStarter.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/SiloApplication.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/SiloTvApplication.kt
Starts route monitoring in both applications. The starter forwards lifecycle, server, sign-in, and eligible network changes to the controller.
HTTP client routing and saved-address requests
shared/src/androidMain/kotlin/org/siloserver/silo/network/SiloHttpClient.android.kt, shared/src/androidMain/kotlin/org/siloserver/silo/network/SiloOkHttp.kt, android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/*, shared/src/commonMain/kotlin/org/siloserver/silo/network/WatchTogetherRealtimeClient.kt, shared/src/commonMain/kotlin/org/siloserver/silo/network/api/{ExternalSignInApi,WatchTogetherApi}.kt, shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/Download*Api.kt, shared/src/commonMain/kotlin/org/siloserver/silo/network/localroute/LocalRouteHeaders.kt
Enables routing in shared HTTP and image clients. Selected download, Watch Together, and external sign-in requests set the saved-address marker.
Playback route scope
android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/*, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerScreen.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
Adds generation-scoped route headers for eligible media requests. Both apps allow local routing outside Watch Party playback and disallow it during Watch Party playback.
Active-route status in server lists
androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/servers/*, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/servers/*
Adds active-route server IDs to list state and displays a home icon and local-network status for the matching server.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Feature · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant App as Android application
  participant Starter as LocalRouteStarter
  participant Controller as LocalRouteController
  participant Probe as LocalRouteProbe
  participant State as LocalRouteState
  participant Client as OkHttp client
  App->>Starter: start with process lifecycle
  Starter->>Controller: send server, sign-in, and network state
  Controller->>Probe: read offer and confirm candidate
  Probe-->>Controller: return offer and confirmation
  Controller->>State: publish confirmed route
  Client->>State: read active route
  Client->>Client: route eligible request to local origin
Loading
Merge Risk: ⚪ Minimal · up to e78c0

Android phone and TV apps can now route API, artwork, and video traffic through the server's local address after verifying it against the server's pinned TLS key. Sign-in, downloads, Watch Party, and other excluded traffic stay on the saved address. No unresolved defects were identified, so the change appears ready to merge.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 25.53% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 188 functions across 35 files. (1 skipped… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Issue [#591] requires trusted local routing for signed-in Android clients. The PR reads the offer over the saved HTTPS origin without redirects, restricts candidates to private IPv4 addresses, require…
Out of Scope Changes check Passed The changed production files support issue [#591]. They implement route discovery, validation, lifecycle and network handling, request transport, media scoping, saved-address exclusions, and server-li…
Description check Passed The description clearly explains the automatic local-network routing changes, exclusions, validation, risks, and follow-ups.
Title check Passed The title clearly and concisely summarizes the primary change: automatic use of the server's local address at home.
Full details: Docstring Coverage

Explanation

Docstring coverage is 25.53% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 188 functions across 35 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added enhancement New feature or request priority: P2 Limited scope, workaround exists, or polish labels Oct 15, 2026
Quick104 added a commit to Silo-Server/siloserver.org that referenced this pull request Oct 15, 2026
The Android apps now move to the server's local address at home
(Silo-Server/silo-android#598). They find it from Local network address
only, so the Docker page no longer says the setting can stay empty with
host networking, and the reverse-proxy page says the apps switch only on
Wi-Fi or a wired network.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (gpt-6.1-sol, reviewed e78c012)

One finding is attached inline.

AI disclosure: Harness Codex in T3 Code; model gpt-6.1-sol.

Quick104 and others added 2 commits October 15, 2026 17:40
The probe clients keep no idle connections. Over HTTP/2, a multiplexed
connection could be evicted from that empty pool before its answer was
read, so a valid candidate sometimes failed its check. This flaked
LocalRouteTransportTest in CI (11 of 200 local runs). The server's LAN
TLS listener offers only HTTP/1.1, so the probes now ask for it alone:
0 of 600 runs failed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…takes the route

The server picks a playback session's local or remote bitrate cap from
the network its `POST /api/v2/playback/start` arrives through, stores
it, and reuses it for every replan. Admission went over the local route
for every stream, including Watch Party, casting and audiobooks, whose
media stays on the saved address. Those sessions got the local cap and
counted as local while streaming over a tunnel or public address.

Admission now takes the route only when the stream's media may: the
phone and TV video starters pass the same rule their media gets, and
every other caller admits on the saved address.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…resses first

- A candidate that presents a key other than the pin now makes the app
  read the connections document again in the same check. Before, a
  SECRET_KEY rotation within 15 minutes of the last read left the old
  pin in place, and the route off, until a later trigger.
- An admin-set host name is resolved only after the local address in
  use, the one that worked last and an IP-literal local address have
  failed, so a slow lookup no longer delays one that works.
- The starter publishes the active server only if it is still the same
  after the sign-in lookup; a switch or sign-out during the lookup
  publishes itself next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104
Quick104 merged commit 578eedf into main Oct 15, 2026
13 of 15 checks passed
@Quick104
Quick104 deleted the feat/local-network-route branch October 15, 2026 22:53
zZebrahz pushed a commit to Silo-Server/siloserver.org that referenced this pull request Oct 24, 2026
The Android apps now move to the server's local address at home
(Silo-Server/silo-android#598). They find it from Local network address
only, so the Docker page no longer says the setting can stay empty with
host networking, and the reverse-proxy page says the apps switch only on
Wi-Fi or a wired network.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
zZebrahz added a commit to Silo-Server/siloserver.org that referenced this pull request Oct 24, 2026
…address setting (#216)

* docs(docker): cover HTTPS on the Silo port and the Local network address setting

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(reverse-proxy): say Apple apps switch to the local address at home

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: say the Android apps switch to the local address at home too

The Android apps now move to the server's local address at home
(Silo-Server/silo-android#598). They find it from Local network address
only, so the Docker page no longer says the setting can stay empty with
host networking, and the reverse-proxy page says the apps switch only on
Wi-Fi or a wired network.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(docker): use the Admin > Server > General path for Local network address

* docs(docker): say only the Apple apps use the announcement to switch at home

* docs(docker): say what the Silo apps check in the self-signed certificate

* docs(reverse-proxy): name the address that has to work at home

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: zZebrahz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: P2 Limited scope, workaround exists, or polish size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch to the server's local address automatically at home

1 participant