Q. what is the difference between socket & port ?
Answer Posted / guest
Port : Port no is the s/w address on a computer on the n/w.
for instance smtp : 25 and pop : 109 and so on....
Socket : Socket is the communication path to a port.
Basically Socket = ip + port, so Socket provides the access
to the ip+port
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
Are sockets bidirectional?
What is the use of recvfrom(2) Function?
What is the use getservent(3)?
How to Obtaine the Socket Address?
How to Specify the Domain of a Socket?
How TCP/IP Handles Lost Packets?
What is the use of SOCK_STREAM Socket Type?
How to perform I/O on Sockets?
What is the difference between socket and port?
What is a socket in linux?
How to Perform Endian Conversions?
How to Test with No Server?
What are sockets used for?
What is the Use of the inet_ntoa() Function?
How to Close Sockets?