Mac Tcp problem(S): shortcuts.

1. find and kill process at port 8000.
Python 2.7 soap service was running in background & looked like this:
sudo lsof -i tcp
..... splunkd    250 root    4u  IPv4 0x32a41b3264440b6f      0t0  TCP *:8089 (LISTEN)python2.7  266 root    5u  IPv4 0x32a41b326443d357      0t0  TCP *:irdmi (LISTEN)Cisco\x20  314   tk   19u  IPv4 0x32a41b3264d35357      0t0  TCP localhost:49158->localhost:29754 (ESTABLISHED).....
Note:  TCP *:irdmi(Listen) is on port 8000 as it responded to :
telnet localhost 8000
$ PID="$(lsof -i tcp:8000 | grep TCP | awk '{print $2}')"
$ kill $PID

  Works on Maverick:  sudo lsof -i -n -P | grep TCP 


Popular Posts