Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 20th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to retrieve ports in use in the system?
  2. netstat -plan
  3.        
  4. -p : Show the PID and name of the program to which each socket belongs;
  5. -l : Show only listening sockets;
  6. -a : Show both listening and non-listening sockets;
  7. -n : Show numerical addresses instead of trying to determine symbolic host, port or user names.
  8.        
  9. netstat -4 --tcp --udp --all