From 4d4489f4f2ff820c43254167ba479fa85aeb3422 Mon Sep 17 00:00:00 2001 From: Loan TALVAT <23056644+loan-talvat@users.noreply.github.com> Date: Wed, 25 Nov 2026 16:34:55 +0100 Subject: [PATCH] docs: say where the daemon names a taken DNS port, and list UDP on Linux Since 1.9.1 the daemon refuses to start when another program holds its DNS port, and its log names the port. The troubleshooting section now points to localify logs and quotes that line. On Linux, ss -tlnp lists TCP only, while the DNS port is UDP as well, so a program holding UDP 1053 did not show up: the 1053 check now uses ss -tulnp. --- docs/README.md | 12 ++++++++++-- docs/linux.md | 5 +++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/README.md b/docs/README.md index d929c4e..b37e76c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -882,8 +882,16 @@ curl http://localhost:3000 # for a domain you registered by hand ### Ports already in use -If the daemon can't start because ports 80, 443 or 1053 are taken, find what holds them, -then stop it or [change Localify's ports](#configuration): +When another program holds Localify's DNS port, the daemon doesn't start, and its log +names the port with a line like +`Failed to open the DNS port 127.0.0.1:1053. Another program may hold it`: + +```bash +localify logs -n 20 +``` + +If ports 80, 443 or 1053 are taken, find what holds them, then stop it or +[change Localify's ports](#configuration): ```bash sudo lsof -i :80 diff --git a/docs/linux.md b/docs/linux.md index ec6df59..af67fac 100644 --- a/docs/linux.md +++ b/docs/linux.md @@ -201,12 +201,13 @@ If missing, re-run `localify install`. ### Port Already in Use -On Linux, check which process is using a port with `ss`: +On Linux, check which process is using a port with `ss`. Localify's DNS port is UDP as +well as TCP, so add `-u` for 1053: ```bash sudo ss -tlnp | grep ':80\b' sudo ss -tlnp | grep ':443\b' -sudo ss -tlnp | grep ':1053\b' +sudo ss -tulnp | grep ':1053\b' ``` Common culprits: Apache (`apache2`), nginx, or another