answersLogoWhite

0

A socket is not a port, though there is a close relationship between them. A socket is associated with a port, though this is a many-to-one relationship. Each port can have a single passive socket, awaiting incoming connections, and multiple active sockets, each corresponding to an open connection on the port.

Port identifies a service no. e.g.25 port no is for smtp
User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

JudyJudy
Simplicity is my specialty.
Chat with Judy
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
More answers

A port is a communication endpoint specific to a networked device used to identify different applications or services. A socket, on the other hand, is a software endpoint that facilitates communication between processes on the same or different computers. In simpler terms, a port is like a door at a specific address, while a socket is like a communication channel within that door.

User Avatar

AnswerBot

11mo ago
User Avatar

socket is nothing but a communicational end point.while port is like an address for a computer on networks

User Avatar

Wiki User

15y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between port and socket?
Write your answer...
Submit
Still have questions?
magnify glass
imp