netstat
----------
most useful and very versatile for finding connection to and from the host. you can find out all the mulitcast groups (network) subscribed by this host by issuing "netstat -g"
netstat -nap | grep port will display process id of application which is using that port
netstat -a will display all connections including tcp and udp
netstat --tcp will display only tcp connection
netstat --udp will display only udp connection
netstat -g will display all multicast network subscribed by this host.
It will display the content of all routing tables, or a routing table for a particular address family.
For Windows and Linux use the - netstat -a command, for this Macintosh I use the whois connected widget.
netstat - input will give a list of all ports in use on a machine with the service running on that port.
netstat -l
netstat -a
There is one general command for the UNIX (actual UNIX not Linux) which will yield which port is being used by what service: lsof -i For Linux it is: netstat For more information for either command, please see these sources: lsof http://www-uxsup.csx.cam.ac.UK/security/lsof.HTML netstat http://www-uxsup.csx.cam.ac.UK/security/netstat.HTML Additional : 'netstat' is a standard tcp/ip utility, so it will work on all platforms using tcp/ip, including windows.
netstat -b
The Windows netstat command; netstat -b (show the executable involved in creating each connection) netstat /? (list of available parameters)
Depending on what kind of server it is, connections can be very transient. The 'netstat -nat' command should print out a list of current TCP connections.
Active TCP connections
AnswerTHE DOS command is netstat -a.
use the netstat command.