General discussion


Ports using UDP

By catsforus ·
I did a test using Ethereal to try and get an idea how when using P2P ?Bitcomet? the ports are used or allocated. This is how it looked.

Source port: 24142, Destination port : 17592
24142 13488
24142 18311
24142 27034

So it looks like the Source Port being my PC and the Destination being the other side. I would imagine that the destination is changing because I am connection to a number of different users? I am a bit unclear on this I must admit.I would have thought it would be determined by what you are doing that would allocate what port you connect to. Why would it change from PC to PC if my theory is correct that I am connecting to different PC?s

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by hozcanhan In reply to Ports using UDP

dear friend I would suggest you read the section describing how ip, tcp and udp ( is like except it is for short datagrams , i.e control data etc. )explanations over . The answer to your question is: even if you are connecting to different pc s , which means different destination addresses - you need to use a different for for each udp call . why ? how would you differentiate among them if you make more than one udp calls to a pc ? so you need to ( I mean the network layer - udp call ) has to specify a udp port to the destination together with its ip address to match the answer from the destination exactly to the same port asking it .

Related Discussions

Related Forums