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
What is the setservent(3) Function?
How socket is created?
What is the use of inet_aton() Function?
How to perform I/O on Sockets?
What are Nameless Sockets?
Why bind system call is required in socket programming?
How to Test with Other IP Numbers?
How to Examin the Generic Socket Address?
How to Reply to a Wild Address?
How do udp sockets work?
How to Form Abstract Local Addresses?
What are Reserved IP Numbers?
How to Form Local Addresses?
How to Examin the /etc/services File?
How to Initialize a Wild Internet Address?