Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!wuarchive!rice!rice!sun-spots-request From: hrp@homxa.att.com (Harold R Pomeranz) Newsgroups: comp.sys.sun Subject: finding a process holding a port??? Keywords: Miscellaneous Message-ID: <1990Oct7.231124.3676@rice.edu> Date: 7 Oct 90 21:30:00 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 10 Approved: Sun-Spots@rice.edu Originator: spots@walhalla.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 338, message 5 I have an internal piece of software that needs to listen at a particular port and which was working up until a couple of weeks ago. Now the daemon won't run because something else is apparently listening at that port (I can telnet there and get a connection, but there's nothing to give away what the listener might be). What I'm looking for is a way to either (a) given the port number, get a listing of those processes which are using it or (b) close a port connection without knowing the listening processes so that my process can use it. I have found netstat -a to be unhelpful. Hal Pomeranz pomeranz@att.com att!pomeranz