Unix.....>>netstat -al | grep 8787 (will see packets on port 8787)
+1
A:
What is the nature of the question here? Are you trying to see packets on port 8787? Are you looking for services listening on port 8787? Most importantly, how is this a programming-related question?
jtimberman
2008-09-17 20:22:38
A:
If you want to see the actual packets then you need to use tcpdump.
Use the -s
option to specify how much of the packet you want to see (0
means the whole packet) and the -X
option to get a Hex and ASCII dump.
Alnitak
2008-10-07 10:48:02
A:
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.
Joel Cunningham
2008-10-07 10:56:13