Why is it that a server needs a fixed port number but client process can be given any random port number?
The client process needs a temporary port number. It tells the server to which port to reply (the TCP or UDP header includes information about the source and the destination port). The client, on the other hand, doesn't know in advance what port the server uses - unless the server uses a standard port number.The client process needs a temporary port number. It tells the server to which port to reply (the TCP or UDP header includes information about the source and the destination port). The client, on the other hand, doesn't know in advance what port the server uses - unless the server uses a standard port number.The client process needs a temporary port number. It tells the server to which port to reply (the TCP or UDP header includes information about the source and the destination port). The client, on the other hand, doesn't know in advance what port the server uses - unless the server uses a standard port number.The client process needs a temporary port number. It tells the server to which port to reply (the TCP or UDP header includes information about the source and the destination port). The client, on the other hand, doesn't know in advance what port the server uses - unless the server uses a standard port number.