Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

On Port Assignment in UDP#

Sumit Rawal answered on August 24, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • process is listening on a TCP or UDP port Windows

  • On Port Assignment in UDP#

    0

    It’s far more common to let the port on the client-side of an application be assigned dynamically instead of choosing a particular port. This is because for communication, both parties must be able to identify each other. Since the client initiates communication to the server, it must know the port number of the application on the server. However, the server doesn’t need to know the client application’s port number in advance. When the first datagram from the client reaches the server, it will carry the client port number, which the server can use to send datagrams back to the client.

    However, server-side applications generally do not use dynamically allocated ports! This is because they are running well-known protocols like HTTP and need to be bound to specific ports. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: port whatever
    Link to this answer
    Share Copy Link
    Contributed on Aug 24 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0

    It’s far more common to let the port on the client-side of an application be assigned dynamically instead of choosing a particular port. This is because for communication, both parties must be able to identify each other. Since the client initiates communication to the server, it must know the port number of the application on the server. However, the server doesn’t need to know the client application’s port number in advance. When the first datagram from the client reaches the server, it will carry the client port number, which the server can use to send datagrams back to the client.

    However, server-side applications generally do not use dynamically allocated ports! This is because they are running well-known protocols like HTTP and need to be bound to specific ports. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: port whatever
    Link to this answer
    Share Copy Link
    Contributed on Aug 24 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.