Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.