Question: A client program normally uses ____________ port number. A server program normally uses __________ port number.
Answer:
A client program normally uses an ephemeral (or dynamic) port number, while a server program normally uses a well-known (or registered) port number.
An ephemeral port number is a temporary port number that is assigned to the client program by the operating system from a range of available port numbers (typically between 49152 and 65535) when it initiates a connection to a server. The client program uses this port number to send and receive data over the connection.
A well-known port number, on the other hand, is a fixed port number that is reserved for a specific service or protocol. Examples of well-known port numbers include port 80 for HTTP, port 443 for HTTPS, port 25 for SMTP, and port 22 for SSH. Server programs typically listen on these well-known port numbers for incoming connections from clients.
MCQ: A client program normally uses ____________ port number. A server program normally uses __________ port number.
Correct Answer:A. a well-known; an ephemeral
Explanation:
A client program normally uses an ephemeral (or dynamic) port number, while a server program normally uses a well-known (or registered) port number.
An ephemeral port number is a temporary port number that is assigned to the client program by the operating system from a range of available port numbers (typically between 49152 and 65535) when it initiates a connection to a server. The client program uses this port number to send and receive data over the connection.
A well-known port number, on the other hand, is a fixed port number that is reserved for a specific service or protocol. Examples of well-known port numbers include port 80 for HTTP, port 443 for HTTPS, port 25 for SMTP, and port 22 for SSH. Server programs typically listen on these well-known port numbers for incoming connections from clients.