Running Models YourselfLesson 57 of 82

Module 7 · Serving it to other people

Reaching the machine from somewhere else

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 2 of 9 in this chapter

This chapter’s goalExpose a local model as a service other people can use safely (bound to loopback and reached over SSH or a WireGuard mesh, fronted by a gateway that holds keys and quotas, packaged and supervised so it restarts on its own, logging what is needed without retaining prompts you cannot defend) and state what an unauthenticated inference port costs you within hours of being reachable.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Two facts people merge into one complaintThe bind address: who may connect127.0.0.1 refuses the next desk as firmly asBrazil0.0.0.0 listens on every IPv4 interfaceAn asterisk in the ss output means IPv6 tooYou change it with a flag or an environmentvariableReachability: who actually canDefault-allow IPv6 needs no port forwarding atallUPnP opens a port without anybody deciding toCarrier-grade NAT blocks it however youconfigureSo test from mobile data, not from the nextdeskBoth failures look identical from the client and have opposite fixes. Scanners sweep the whole addressspace on the common inference ports within hours, none of these servers ships with authentication, andthe abuse that follows is attributable to your machine before it is attributable to anyone else.
Both failures look identical from the client and have opposite fixes. Scanners sweep the whole address space on the common inference ports within hours, none of these servers ships with authentication, and the abuse that follows is attributable to your machine before it is attributable to anyone else.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Two questions people merge into one

When a colleague says “I cannot reach your model”, there are two separate facts in play, and almost every mistake in this area comes from treating them as one.

The first is the bind address: which network interfaces the server is listening on. The second is reachability: whether packets from the other machine can arrive at that interface at all. A server bound to 127.0.0.1 will refuse a connection from the next desk even on a perfectly open network. A server bound to 0.0.0.0 behind a strict router will also refuse it. The two failures look identical from the client and have opposite fixes.

Check the first with one command:

Bash
ss -tlnp | grep -E '11434|8000|8080'
# LISTEN 0 4096 127.0.0.1:11434   -> loopback only
# LISTEN 0 4096 0.0.0.0:11434     -> every IPv4 interface
# LISTEN 0 4096 *:11434           -> every interface, IPv4 and IPv6

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Open Model Ecosystem exam.

Stuck on something?Ask Tri, your AI tutor

How to cite: Addaly (2026) ‘Reaching the machine from somewhere else’, in Running Models Yourself. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/running-models-yourself/reaching-the-machine-safely (Accessed: 27 November 2026).