Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose a process in Host C has a UDP socket with port number 12345. Suppose both Host A and Host B each sends a UDP segment to Host C with destination port number 12345. Will both of these segments be directed to the same socket at Host C? Why?

I would think yes they would be since it doesnt matter that their two different segments as long as they're running on the same port of 12345 .

Is this true? Why?

share|improve this question
up vote 2 down vote accepted

Correct; because that's how listening sockets work.

share|improve this answer
Thanks :) !!!!! – Hi There Apr 27 '12 at 19:20
It's how UDP listening sockets work. (Because UDP is connectionless, both datagrams are being sent to the same endpoint.) – David Schwartz Apr 27 '12 at 19:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.