How can I tell which process is using port 8888? I have an NKE and my process is needing to connect to it. Every now and then I get bind socket error, 127.0.0.1:8888 is in use...
Any ideas?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityHow can I tell which process is using port 8888? I have an NKE and my process is needing to connect to it. Every now and then I get bind socket error, 127.0.0.1:8888 is in use...
Any ideas?
@Somantra's answer is close, but won't quite work. Try:
sudo lsof -i:8888
sudo may be needed so lsof can see processes not owned by you; also, grepping lsof's output will fail unless you search for the service name associated with port 8888 (it's "ddi-tcp-1").
This is probably what you are looking for.
lsof | grep ":8888"
NOTE: Thanks @Gordon Davisson, I forgot about the alias I added which made the command above work for me.
alias lsof='sudo lsof -Pni4 | grep LISTEN'