2

I am getting the following error:

enter image description here

after looking at this solution: https://levelup.gitconnected.com/how-to-kill-server-when-seeing-eaddrinuse-address-already-in-use-16c4c4d7fe5d (kill the process manually) and typing: lsof -i tcp:8080

I get:

enter image description here

which one would be the process to kill?

Alessandro
  • 4,405
  • 15
  • 55
  • 108
  • Does this answer your question? [Who is listening on a given TCP port on Mac OS X?](https://stackoverflow.com/questions/4421633/who-is-listening-on-a-given-tcp-port-on-mac-os-x) – Holger Just Aug 10 '20 at 14:19
  • unfortunately not, just tried it too. Thanks – Alessandro Aug 10 '20 at 14:21

2 Answers2

0

Try the following

lsof -t -i tcp:8080 | xargs kill
Akash Dathan
  • 3,468
  • 1
  • 21
  • 40
0

You can do it using the following ways

sudo kill $(lsof -t -i:8000) 

OR

sudo fuser -k -n tcp 8000 

OR

fuser -k 8000/tcp
CyberEternal
  • 809
  • 1
  • 3
  • 17