Skip to content

Instantly share code, notes, and snippets.

@wankdanker
Created November 7, 2011 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wankdanker/1345312 to your computer and use it in GitHub Desktop.
Save wankdanker/1345312 to your computer and use it in GitHub Desktop.
udp multiple process bind test results
user@inspection09:/tmp$ uname -a
Linux inspection09 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686 GNU/Linux


user@inspection09:/tmp$ netstat -plun
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 0.0.0.0:12345           0.0.0.0:*                           7853/udp-bind-twice
udp        0      0 0.0.0.0:12345           0.0.0.0:*                           7776/udp-bind-twice


user@inspection09:/tmp$ lsof -ni4udp
COMMAND    PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
udp-bind- 7776 user    3u  IPv4 1173471      0t0  UDP *:12345 
udp-bind- 7853 user    3u  IPv4 1173557      0t0  UDP *:12345
root@linuxvm12:~# uname -a
Linux linuxvm12 2.6.38-10-server #46~lucid1-Ubuntu SMP Wed Jul 6 20:19:32 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

root@linuxvm12:~# netstat -plun
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 0.0.0.0:12345           0.0.0.0:*                           4764/udp-bind-twice
udp        0      0 0.0.0.0:12345           0.0.0.0:*                           4757/udp-bind-twice

root@linuxvm12:~# lsof -ni4udp
COMMAND    PID     USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
udp-bind- 4757     root    3u  IPv4 7574738      0t0  UDP *:12345 
udp-bind- 4764     root    3u  IPv4 7571152      0t0  UDP *:12345 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment