Address already in use

lsof

Published March 22, 2024

network
Contents

If you want to see which process is listening on a certain port, use lsof. For example, looking for what's running on 9292 is:

1
  lsof -i :9292
COMMAND   PID    USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
ruby    27467 wschenk   13u  IPv4 0x8cf71cd7f78517e3      0t0  TCP localhost:armtechdaemon (LISTEN)
ruby    27467 wschenk   20u  IPv6 0x8cf71cdcbf525e93      0t0  TCP localhost:armtechdaemon (LISTEN)

And then you can kill it with

1
  kill 27467

Previously

Making a JSON api from a CSV file using fly download, process, serve, update

2024-03-22

Next

Things I love about my phone

2024-03-24

labnotes

Previously

Deploying puppeteer on fly.io

2024-03-22

Next

Playing with openrouteservice-js learning about mapping

2024-03-25