Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions docs/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading