Who has port X open?
Mark Caron
mcaron at tiac.net
Wed Apr 11 22:35:22 EDT 2001
Try netstat -pn -tu When I did this I got the following:
mcaron:~ # netstat -pn -tu
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 1 0 38.32.9.67:3921 209.50.235.253:80 CLOSE_WAIT
509/netscape
tcp 1 0 38.32.9.67:3907 64.28.67.57:80 CLOSE_WAIT
509/netscape
tcp 1 0 38.32.9.67:3906 64.28.67.57:80 CLOSE_WAIT
509/netscape
Mark
John Chambers wrote:
>
> Not to change the subject or anything, but in the midst of
> the deep philosophical debate, does anyone happen to know:
>
> How can I tell what program has port X opoen?
>
> There are some ports open that I can't identify. I do know
> that netscape likes to keep ports open long after I've hit
> the back button. But it'd be useful to be able to see who
> is talking to whom. Some of those connections might be good
> to shut down.
>
> I've learned the answer to this question on a number of
> other unices, and so far every one of them has been
> different. I don't seem to see the answer anywhere in the
> linux docs, and I'd expect that there's a way to do it.
>
> -
> Subcription/unsubscription/info requests: send e-mail with
> "subscribe", "unsubscribe", or "info" on the first line of the
> message body to discuss-request at blu.org (Subject line is ignored).
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list