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


Please Help Members By Posting Answers For Below Questions

What is Internet Address Classes?

981


How to test socket connection in linux?

481


What is the use of PF_INET and SOCK_STREAM?

1002


How does socket communication work?

494


How to read socket file in linux?

516






What is the use getservent(3)?

1151


How to Form Internet (IPv4) Socket Addresses?

1000


Are sockets bidirectional?

435


How socket is created?

471


How to use the PF_LOCAL and AF_LOCAL Macros?

1074


What is the use of setprotoent(3) Function?

1149


What is the use of inet_aton() Function?

1072


HOW TCP/IP Handles Duplicated Packets?

1236


What is the use of SOCK_STREAM Socket Type?

1032


Are udp sockets bidirectional?

486