What is the difference between a port and a socket?

What will be an ideal response?


ANSWER: A port is a number assigned to a process, such as an application or a service, that can receive data. Whereas an IP address is used to find a computer, a port is used to find a process running on that computer. TCP and UDP ports ensure that data is transmitted to the correct process among multiple processes running on the computer. A socket consists of both a host's IP address and a process's TCP or UDP port, with a colon separating the two values. For example, the standard port for the Telnet service is TCP 23. If a host has an IP address of 10.43.3.87, the socket address for Telnet running on that host is 10.43.3.87:23.

Computer Science & Information Technology

You might also like to view...

One of the most intense areas of research in the field of symmetric block ciphers is __________ design.

A) ?S-box ? B) ?F-box ? C) ?E-box ? D) ?D-box

Computer Science & Information Technology

The quickest way to find a record in a database is to use the ________ feature

A) Filter B) Find C) Query D) Sort

Computer Science & Information Technology

When a word is selected by double-clicking it and clicking Delete, both the word and the space after it are deleted

Indicate whether the statement is true or false

Computer Science & Information Technology

In Excel Online, the Share Survey feature creates a link providing access to a web form without giving the end users access to the collected results

Indicate whether the statement is true or false

Computer Science & Information Technology