Tin Hat / Run a server / The setup
Set up your server
Every server, however you installed it, finishes the same way: a setup page in your browser. Here's every screen, what it does and why.
Every screen has a What's happening? panel (the i button at the top) that explains the step and what the server does. Open it whenever you want the details; the setup works without it.
1. The setup code
When the server starts for the first time, its own screen shows two things: the address to open (like http://tinhat.local or http://192.168.1.50) and an 8-digit setup code. On a VM, that's its console window.
================================================================
Tin Hat Server is ready to set up.
On a computer or phone on the same network, open:
http://tinhat.local or http://192.168.1.50
Setup code: 4082-7685
(No need to log in below: everything happens in the browser.)
================================================================
tinhat login: _Open the address on a phone or computer on the same network, and type the code. The code proves you're the person who can see the server, so nobody else on your network can set it up first. The setup page is plain HTTP until the server has its certificate, so set it up on a network you trust. Ten wrong tries lock the page for ten minutes.
Installed on your own Linux machine, there's no setup screen: the installer prints the address and the code at the end (next to your own reverse proxy, the address ends in :8080), and sudo tinhat setup-code shows the code again (Linux). On Windows, the tray icon's Show setup code does the same.
Then choose Set up a new server, or Restore from a backup to bring back a server you backed up before (moving to a new computer, or after a reinstall): same name, people, rooms and messages. How moving works.
2. Check
About 15 seconds of measuring:
- Processor and storage, measured on the server: how fast it handles chat-like work, and how quickly it saves messages. SD cards and USB sticks show up as too slow here.
- Memory and disk space.
- Network, measured from your device: download, upload and round-trip time between you and the server.
- Internet: whether the server can reach the outside world.
Each line gets green, yellow or red with a one-line reason. The results decide what the next step recommends.

3. Features
What the server should run, with the recommended choice already picked:
- Voice and video calls: with how many people on camera this server can handle.
- Link previews: the server fetches a preview card for links people post (never from your home network's private addresses).
- Biggest file people can send: 25 MB to 2 GB.
- Find people by name: whether everyone on the server can find each other by name.
Grey items are coming later. Everything here can be changed afterwards from the dashboard.

4. Name, and who connects
Pick who will use the server. There are three choices:
People in my home
The server is yourname.local on your network. Nothing opens to the internet. Each device trusts the server once at the end (how).
Friends anywhere
Enter your server code and a name. The server becomes yourname.tinhat.me with a real certificate, and friends only type yourname. As you type, the page checks the name is free and the code is valid.
My own domain Advanced
For people who own a domain, or already run a reverse proxy. Type the full address, like chat.example.com, then say where the domain's DNS is (Cloudflare, Porkbun, deSEC or DuckDNS, with an API token from there) or choose My own reverse proxy (it handles HTTPS). Nothing depends on tinhat.me, and friends type the whole domain. Your own domain, step by step.
Installed next to your own reverse proxy on a Linux machine (--behind-proxy), it's the only choice, already picked.
The name itself can't change, because it's part of every account (@alex:yourname.tinhat.me). Later the server can still move to a domain of your own, from its dashboard (moving; everyone signs in again). A tinhat.me name is 4–32 lowercase letters, numbers or single dashes; a home name 2–30. Names that look like a brand or a login page are refused, and a tinhat.me name is never given out twice.

5. Your admin account
Your everyday Tin Hat account, which can also manage the server: your name, a username and a password of at least 8 characters. Write the password down: a home server can't email you a reset link. If you forget it anyway, a one-time code from the server itself lets you set a new one (how).
6. Install
Check the summary and press Install Tin Hat Server. The server starts its parts one at a time and checks each one before moving on. Home only takes about a minute; friends anywhere usually takes 1–3 minutes:
| Step | What happens |
|---|---|
| Reserving your server's name | The names service gives you yourname.tinhat.me and points it at your home. A few seconds of number-crunching proves this is a real new server. |
| Pointing your domain at your home your own domain only | With Cloudflare, the server points your domain at your home's public address itself. With the others (and behind your own proxy), it checks the domain already points there, and says which record to set if not. |
| Preparing, database, chat server | Settings and secrets are made; the database and the chat server start. The chat server's first start is the longest step. |
| Creating your admin account | Your account, plus the server's first room, General, where new people land. |
| Getting a certificate | Let's Encrypt issues a real certificate, through the names service or, for your own domain, through your DNS provider's API. No port needs to be open for this. Behind your own reverse proxy, your proxy has the certificate and this step gets the server ready for it. |
| Opening ports on your router | The server asks your router to open TCP 443, TCP 7881 and UDP 7882 (UPnP or NAT-PMP); behind your own reverse proxy only the two call ports. It also notices when your internet provider or a second router is in the way. On a rented server with its own public address there's nothing to open. |
| Starting voice and video calls | The call service and its sign-in service start. |
| Checking from outside your home | The names service connects back to your home on each port, like a friend's phone would. Calls pause for a few seconds during the check. |
If something fails, the page says what went wrong and offers Try again, which picks up where it stopped. The port and outside steps never stop the install: if they find a problem, they say what to change, and you can fix it afterwards. The server keeps asking your router every few minutes, and checks from outside again by itself once the ports open.

Behind carrier NAT
If Opening ports on your router finds that your internet provider shares one public address between many homes ("carrier NAT", usual for 5G home internet and Starlink), it says so plainly: friends outside your home can't reach a server there, whatever you set at home. The install carries on, and a server for the people in your home works. What you can do instead (a rented server, a public address from your provider, or a friend who hosts).
7. Done
The last page has these parts:
- Open Tin Hat: your server's address, where you sign in with the account you just made.
- Friends outside your home (friends anywhere and your own domain): what the outside check found. If something's blocked, it lists the exact router settings, and Check again runs the check after you've changed them. Until friends can reach the server, the page says Your server is set up in amber instead of green. Router how-tos.
- Invite your people: where your group finds Tin Hat (your server's
https://address: people open it in a browser, on a computer or a phone, with nothing to install, or use the Tin Hat app; on a home-network server each device trusts it once first), and a link to the dashboard, where you make invites. Tell your friends the address. The dashboard's Overview shows it every time, with a button to copy it. - Your reverse proxy (behind your own proxy, first on the page): where to send your domain, and the settings for nginx, Caddy, Traefik and Nginx Proxy Manager, ready to copy. More.


Home only: trusting the server
A server for your home makes its own certificate, so each device trusts it once. The last page (and the welcome page every new device sees at http://yourname.local) walks you through it:
- Download certificate.
- Install it, following the steps shown for your device: iPhone and iPad (Settings → Profile Downloaded → Install, then Settings → General → About → Certificate Trust Settings → turn it on), Android (Settings → Security → Encryption → Install a certificate → CA certificate), Windows (open the file → Install Certificate → Local Machine → Trusted Root Certification Authorities), Mac (Keychain Access → System → Always Trust), Linux.
- The page turns green when this device trusts the server, and Open Tin Hat unlocks.
- Trusting it lets the device accept the certificates your server makes, so only install the one your own server's setup page gave you.
Friends anywhere and your own domain don't need this: their certificate comes from Let's Encrypt (or your own proxy), which every device already trusts.