Search code examples
unixnetstat

Network Socket command


Unix.....>>netstat -al | grep 8787 (will see packets on port 8787)


Solution

  • Use the command

    ifconfig -a

    to determine the interface you want to listen on. Then use

    tcpdump -npi eth0 port 8787

    to listen on the port where eth0 is the interface you want to listen on that you identified from the ifconfig command.