Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a command to find out what ports are being used.

Status
Not open for further replies.

hronek

MIS
Nov 1, 2001
14
US
I need some way of finding out what port numbers are being used. Is there some command that can do this?
 
If you mean the state open/close you can download "nmap" port scanner in "pkgadd" format from " and use something like:

# nmap -P0 -sT localhost

if you mean "what network trafic are in port x" you can use
Solaris tcp dumper "snoop", eg check network packets on interface hme0 only in port 80 (HTTP):

# snoop -d hme0 port 80

check "snoop" man page.

Hope it helps,

Carlos Almeida,
 
If you want to find out what source and destination ports are being used by the system, use the netstat -an command.

StickyBit.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top