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