C.W.K.
Stream
Lesson 05 of 05 · published

Decision Framework — Pick the Right Bind in 30 Seconds

~15 min · flowchart, tailscale, ollama

Level 0Greenhorn
0 XP0/53 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete

Here is the entire decision tree as a flowchart you can run in your head. Apply it every time you stand up a new service.

The flowchart

QuestionYesNo
1. Does anything outside this machine need to reach it?Go to 2127.0.0.1 — done
2. Do you need access from your phone or other devices remotely?Go to 3Specific LAN IP — done
3. Is Tailscale (or similar) installed on this host?Tailscale IP — doneGo to 4
4. Are you publishing this for strangers (real product)?0.0.0.0 + auth + reverse proxy + WAFInstall Tailscale; restart at 3

Worked example: a home Ollama server

ChoiceWhat happensVerdict
OLLAMA_HOST=0.0.0.0Open on every interface; if router forwards 11434, anyone on the internet can hit your modelDon't
OLLAMA_HOST=127.0.0.1Only the host itself; cannot reach from another LAN device or phoneToo restrictive
OLLAMA_HOST=192.168.1.42Reachable from LAN devices but not from cellular phoneWorks at home only
OLLAMA_HOST=100.64.0.5 (Tailscale IP)Phone over cellular works (via tailnet); LAN devices in tailnet work; internet excludedRight answer

Code

Annotate the bind line so future-you knows the trust boundary·bash
OLLAMA_HOST=100.64.0.5  # Tailscale IP — tailnet only, no public exposure

External links

Exercise

Apply the flowchart to every service in lsof output from the previous lesson. Write the right bind for each. Pick the most exposed (typically *:PORT) and actually change its config now — restart, verify with lsof again. One service per session is enough; build the habit by repetition.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.