Re: Some real simple questions regarding sockets
From: Barry Margolin (barry.margolin_at_level3.com)
Date: 10/23/03
- Next message: Måns Rullgård: "Re: Some real simple questions regarding sockets"
- Previous message: Barry Margolin: "Re: sockets and unreadble characters"
- In reply to: Måns Rullgård: "Re: Some real simple questions regarding sockets"
- Next in thread: Måns Rullgård: "Re: Some real simple questions regarding sockets"
- Reply: Måns Rullgård: "Re: Some real simple questions regarding sockets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 23 Oct 2003 17:53:24 GMT
In article <yw1x8ynbhmu8.fsf@kth.se>, Måns Rullgård <mru@kth.se> wrote:
>nimmi_srivastav@yahoo.com (Nimmi Srivastav) writes:
>
>> What's the best way to know which application is using a certain TCP
>> or UDP port number from the OS shell?
>
>netstat -p
On my Solaris 2.6 system that prints
Net to Media Table
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- ----- ---------------
le0 router 255.255.255.255 00:04:de:82:cb:57
le0 wob-dhcp177-088 255.255.255.255 00:d0:59:11:b4:15
le0 tools 255.255.255.255 SP 08:00:20:89:c7:c9
le0 base-address.mcast.net 240.0.0.0 SM 01:00:5e:00:00:00
which is the same as "arp -a". This is clearly not what the OP was looking
for.
The answer that works on just about every flavor of Unix is to use "lsof".
If it's not already on your system, it's available for download from a
variety of places (for Sun's, you can get it from www.sunfreeware.com).
-- Barry Margolin, barry.margolin@level3.com Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
- Next message: Måns Rullgård: "Re: Some real simple questions regarding sockets"
- Previous message: Barry Margolin: "Re: sockets and unreadble characters"
- In reply to: Måns Rullgård: "Re: Some real simple questions regarding sockets"
- Next in thread: Måns Rullgård: "Re: Some real simple questions regarding sockets"
- Reply: Måns Rullgård: "Re: Some real simple questions regarding sockets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|