Skip to content

docs: cover the server's local address at home and the Local network address setting - #216

Merged
zZebrahz merged 7 commits into
mainfrom
docs/local-network-route
Oct 24, 2026
Merged

zZebrahz merged 7 commits into
mainfrom
docs/local-network-route

Conversation

@Quick104

@Quick104 Quick104 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #215

The docs say all three Silo ports run without TLS, and they don't cover the server's local address at home. Silo-Server/silo-server#2532 makes the Silo API port answer HTTPS as well as plain HTTP and adds the Local network address setting. Silo-Server/silo-apple#804 lets signed-in Apple apps move to the server's local address while they're at home, and Silo-Server/silo-android#598 does the same for the Android phone and TV apps.

Silo-Server/silo-server#2532, Silo-Server/silo-apple#804 and Silo-Server/silo-android#598 are merged.

Pages changed

Page Change Preview
Connect securely outside your home Two new paragraphs in "Other addresses clients use" about the local address at home, for the Apple and Android apps Open
Docker deployment reference Port note: PORT also answers HTTPS, with a self-signed certificate the Silo apps check Open
Docker deployment reference "Discovery on the local network": new paragraph on Local network address Open

What changed on each page

Connect securely outside your home

  • At home, once someone is signed in, the Silo apps on Apple and Android devices switch to the server's local address on their own. Browsing, artwork, and video skip the proxy and go straight to Silo's own port, and the server list under Switch Server shows Connected on your local network below the active server. The address the app signed in with has to be HTTPS at the root of its hostname.
  • The Apple apps learn the local address from Silo's announcement, or from Local network address under Docker's default bridge network. The Android apps learn it from Local network address. The apps switch only on Wi-Fi or a wired network, never over mobile data. They go back to the HTTPS address when the device changes networks or the local address stops answering. Sign-in and subtitles always use the HTTPS address, so that address has to work from inside the home too. On Apple devices, the app may ask for local network access the first time.

Worth checking: the sign-in and subtitle sentences go a little past the wording in #215. On Apple, HTTPClient.send keeps /api/v2/auth/ on the saved address and StreamRequest keeps subtitle routes there (silo-apple#804). On Android, LocalRouteInterceptor never routes /api/v2/auth/, and sidecar subtitles load through a data source that never takes the route (silo-android#598). The Apple permission prompt is listed under silo-apple#804's Risks; Android has no such prompt. The Android apps list servers from the announcement when someone adds one, but their switch to the local address doesn't use it (LocalRouteController.kt: "Android does not browse _silo._tcp adverts yet"), so the page says where each app finds the address.

Docker deployment reference

  • Ports: "The three Silo ports listen on every host interface without TLS" now says that PORT answers HTTPS as well as plain HTTP. Its certificate is self-signed, so browsers don't trust it, but the Silo apps check that it belongs to your server. The Jellyfin and Audiobookshelf ports use plain HTTP only.
  • Discovery on the local network: new paragraph: "If people sign in with an HTTPS address, for example through a reverse proxy, set Local network address under Network in Admin > Server > General so their apps can still switch to the local address at home." It gives the example http://192.168.1.20:8090 and says the change applies without a restart. It ends: the Android apps find the local address from this setting, and with host networking the Apple apps also find it from the announcement.

Worth checking: I wrote the paragraph for people who sign in with an HTTPS address, not for everyone on the bridge network. The apps only switch when the saved address is HTTPS (LocalRouteController.server(for:) on Apple, LocalRouteController.serverFor on Android), so a household that signs in with http://192.168.1.20:8090 gains nothing from the setting. The earlier "with host networking the setting can stay empty" came out: the Android apps need the setting even then.

Left out on purpose

  • How the trust works: the key derived from SECRET_KEY, the pin in local_route of GET /api/v2/system/connections, and the identity check. No other admin page goes that deep.
  • Apps only try private IPv4 addresses (RFC 1918). A host name counts only when it resolves to one. The example uses such an address. Spelling out the rule seemed deeper than the page goes.
  • The rest of what stays on the HTTPS address (token refresh, audio, Watch Party, downloads, Top Shelf on Apple, casting on Android). The pages name sign-in and subtitles, the two an admin would notice.
  • configuration.md. It has no list of General settings, only a pointer to Admin > Settings, so docs: apps use the server's local address at home, and the Local network address setting #215's check found nothing to add there.
  • No requires field. The release that ships this isn't known yet.

Evidence

Reviewed against source. All three pull requests are merged: silo-server#2532 (0e2f5b27), silo-apple#804 (518c6a41) and silo-android#598 (578eedf10). Rechecked on origin/main: silo-server aed330224, silo-apple 79a3de25, silo-android 0545b85de. Later commits to the cited files (silo-apple 604af281 and 9f8f7caf, silo-android ff8798987) don't change the documented behavior. The Android text was also checked against silo-android#598's live run on Android phone and TV emulators against a sandbox.

  • silo-server: feat(discovery): let signed-in clients use the server's LAN address silo-server#2532 head da511bf5c (main at c1c4b92bf)
    • cmd/silo/main.go: only the API listener answers TLS.
    • internal/lantls
    • internal/config/admin_settings.go: server.local_url, empty by default, origin only, read on each request.
    • internal/config/restart_keys.go: the setting doesn't need a restart.
    • web/src/pages/admin-settings/GeneralSettings.tsx: label and description.
    • web/src/lib/adminNavigation.ts: the General page sits under Server.
    • internal/apiv2/system_identity.go
    • docs/architecture/server-identity.md ("Local network TLS") and docs/architecture/server-discovery.md
    • docker-compose.yml: PORT maps to the API listener on 8080.
  • silo-apple: feat(networking): use the server's local address automatically at home silo-apple#804, read at ab06de6e and rechecked at head f3baa1b4 (main at c3d827be). The one newer commit stops route checks on cellular behind a VPN and doesn't affect the docs.
    • LocalRouteController.swift: HTTPS saved address without a path, candidates, fallback on network change or failure.
    • LocalRoute.swift
    • HTTPClient.swift
    • StreamRequest.swift
    • ServerListView.swift: the status text.
    • The Info.plist local network usage strings.
  • silo-android: feat(network): use the server's local address automatically at home silo-android#598 head e78c0125 (main at b5bf8599e)
    • shared/.../localroute/LocalRouteController.kt: HTTPS saved address without a path, candidates from Local network address and the address that last worked, Wi-Fi or Ethernet only.
    • shared/.../localroute/LocalRouteInterceptor.kt: sign-in paths never routed; fallback to the HTTPS address.
    • android-shared/.../player/SiloPlayerFactory.kt: sidecar subtitles stay on the HTTPS address.
    • ServerListScreen.kt, TvServerListScreen.kt and LocalRoute.STATUS_TEXT: the status text.
    • Tested live on Android 16 phone and TV emulators against a sandbox (see that PR's Validation).

Needs a hands-on check:

  • Whether Apple TV and Mac ask for local network access. The page says "may".
bun run test:docs   ℹ tests 8  ℹ pass 8  ℹ fail 0
bun run build       ℹ tests 43 ℹ pass 43 ℹ fail 0; All internal links are valid; [build] Complete!
git diff --check    clean
(rerun at 48e0a1b, rebased on main 21175cd)

Evidence: https://evidence.siloserver.org/r/siloserver-org/local-network-route/

Follow-ups

  • The Android phone app labels its menu item Switch server; the Android TV and Apple apps use Switch Server. The pages follow accounts.md and say Switch Server.

Risks

None identified. Documentation only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code, gh, git, bun
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; human verification is the review requested on this PR
  • Adversarial review: n/a, a documentation change

🤖 Generated with Claude Code

Note

Document local-network address switching and the Local network address setting

Adds docs for how signed-in apps switch to the server's local address at home.

  • In docker.md: clarifies that the main PORT serves HTTPS (self-signed) and plain HTTP, expands the mDNS discovery section, and adds setup steps for the Local network address setting, including the no-restart note and Android/Apple behavior.
  • In reverse-proxy.md: documents how Apple and Android apps learn the local address, the Wi-Fi/wired-network condition, fallback behavior on network changes, the HTTPS sign-in requirement, and the Apple permission prompt.

Macroscope summarized bf476c7.

@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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9841dc53-caac-4224-9297-4db4ef1d5f13
Commits

Reviewing files that changed from the base of the PR and between 21175cd and 48e0a1b.

Files selected for processing: 2
  • src/content/docs/docs/running-a-server/docker.md
  • src/content/docs/docs/running-a-server/reverse-proxy.md

Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

Walkthrough

Changes

The Docker and reverse-proxy guides now describe Silo’s HTTPS and HTTP ports, local-address configuration, and how signed-in Apple and Android apps use the local address on home networks.

Local network access

Layer / File(s) Summary
Docker ports and local-address configuration
src/content/docs/docs/running-a-server/docker.md
The guide describes the protocols served by Silo ports, multicast discovery limits in the default bridge network, and the Local network address setting.
App local-address switching
src/content/docs/docs/running-a-server/reverse-proxy.md
The guide describes when signed-in Apple and Android apps use the local address for browsing, artwork, and video, and when they return to HTTPS.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: zzebrahz

Merge Risk: Minimal · up to 48e0a

The documentation is ready to merge after normal checks; no actionable issue was established.

Architecture risk: Low · up to 48e0a

The change affects 1 system.

Changed systems: src

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — src (service) was modified; 2 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in src/content/docs/docs/running-a-server/docker.md: The port guidance now says PORT serves HTTPS as well as HTTP using a self-signed certificate that browsers do not trust; it retains the existing compatibility-port and external-access guidance.
  • observed — Modified behavior in src/content/docs/docs/running-a-server/docker.md: The discovery guidance now states that the default bridge network does not pass multicast and that the default Compose file does not use host networking.
  • observed — Modified behavior in src/content/docs/docs/running-a-server/docker.md: New guidance explains that when users sign in through an HTTPS address, setting Local network address lets apps switch to the local address at home. The setting takes effect without a restart; Android apps use it, and Apple apps use it with host networking.
  • observed — Modified behavior in src/content/docs/docs/running-a-server/reverse-proxy.md: The guide adds app-specific local-address discovery and switching behavior: Apple and Android apps bypass the proxy for browsing, artwork, and video on Wi-Fi or wired networks, but not mobile data. The sign-in URL must be HTTPS at the hostname root; apps return to HTTPS when the network changes or the local address stops responding, and use it for sign-in and subtitles. Apple apps may request local-network permission.
Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main documentation changes for local-network addresses and the Local network address setting.
Description check Passed The description is detailed and directly related to the documentation changes, affected pages, implementation behavior, validation, and scope.
Linked Issues check Passed Directly linked issue #215 is open, so its documentation items apply. The diff at head (base 21175cd) covers each item:

1. Port note (docker.md, Ports): states that PORT answers HTTPS as well as pl…
Out of Scope Changes check Passed All changes are in two documentation files: docker.md and reverse-proxy.md. Each change is tied to the #215 objectives on the local network address and the TLS-capable PORT.

The issue lists Android…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Linked Issues check

Explanation

Directly linked issue #215 is open, so its documentation items apply. The diff at head (base 21175cd) covers each item:

  1. Port note (docker.md, Ports): states that PORT answers HTTPS as well as plain HTTP. It says the certificate is self-signed, that browsers don't trust it, and that the Silo apps check it. It keeps the HTTPS guidance for access from outside the network. Jellyfin and Audiobookshelf are stated as plain HTTP only.
  2. Discovery section (docker.md): tells users on the default bridge network to set Local network address to the Docker host's LAN IP and the PORT value, with the example http://192.168.1.20:8090. It states that no restart is needed. The paragraph applies when people sign in with an HTTPS address. That condition matches the reverse-proxy text, where switching requires an HTTPS saved address. It is a narrowing of the issue's wording, not a contradiction.
  3. Reverse-proxy section (reverse-proxy.md, Other addresses clients use): describes automatic switching to the local address at home for signed-in Apple apps. It names the Connected on your local network status in the server list. It requires an HTTPS saved address. It states that the connection goes directly to Silo, not through the proxy.
  4. configuration.md check: the file at head has no list of General settings. It points to Admin > Settings only. The PR's statement that nothing needed adding there is confirmed.

The Apple and Android behavior described in the pages cites external PRs (silo-apple#804, silo-android#598) and their source files. Those files are not in this checkout, so the factual accuracy of those app-behavior claims is not verified here. This does not change the result: the issue requirements are documentation content, and the content is present.

Full details: Out of Scope Changes check

Explanation

All changes are in two documentation files: docker.md and reverse-proxy.md. Each change is tied to the #215 objectives on the local network address and the TLS-capable PORT.

The issue lists Android switching as out of scope, citing silo-android#591 and the statement that Android apps don't switch yet. The PR description states that silo-android#598 has merged and that Android behavior is documented. The Android text sits in the same paragraphs as the Apple text and describes the same feature. It is not an unrelated change. The out-of-scope note in #215 appears stale relative to the PR's stated state. This was not verified in the repository. The maintainer should confirm that the Android text matches the merged state.

The Web and Jellyfin-compatible apps are not changed, as the issue requires. No other files changed in the reviewed diff.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@Quick104

Quick104 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Draft until Silo-Server/silo-android#598 is merged into main. Silo-Server/silo-server#2532 and Silo-Server/silo-apple#804 are merged. The docs describe all three, and #598's labels or behavior may still change in review.

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Oct 15, 2026
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Preview removed after this pull request was closed. Its address now redirects to siloserver.org, though some visitors may still see the old preview for a while.

@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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@zZebrahz

Copy link
Copy Markdown
Contributor

Ready for review: Silo-Server/silo-android#598 merged as 578eedf10. The review thread checks these pages against current main before this merges.

Quick104 and others added 7 commits October 24, 2026 04:29
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
zZebrahz force-pushed the docs/local-network-route branch from bf476c7 to 48e0a1b Compare October 24, 2026 04:31
@silo-kody

silo-kody Bot commented Oct 24, 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 ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@zZebrahz
zZebrahz merged commit 4c02ec0 into main Oct 24, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 48e0a1b3 Deployed Oct 24, 2026 by zZebrahz via teardown #132
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/S 0–49 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: apps use the server's local address at home, and the Local network address setting

2 participants