MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Computer Networks
Computer Networks Assessment
Q
The client in socket programming must know which information?
AA. Ip address of server
BB. Port number
CC. Both ip address of server & port number
DD. Only its own ip address
Correct Answer:
C. C. Both ip address of server & port number
Explanation:
The client in socket programming must know IP address of Server as it has to use that IP address in order to initialize the socket class constructor. That is how the client requests a connection to the server.