Q. what is the difference between socket & port ?
Answers were Sorted based on User's Feedback
Answer / srinivas antarvedi
port : a particular port number on a host
socket: a host and a port
like
-> http port = 80
-> when you fire up google.com
the socket on the server side is google.com:80 this is the server side socket
on your local system where you are browsing the socket is
yourip:port above 1024
| Is This Answer Correct ? | 18 Yes | 1 No |
Answer / 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 |
How to Bind a Specific Interface Address?
What is the use of PF_INET or AF_INET?
Can you send and receive on the same socket at the same time?
What are Anonymous Calls?
How to Form Internet (IPv4) Socket Addresses?
What is the difference between socket & port?
What is the use of PF_INET and SOCK_DGRAM?
How to Define a Socket?
What are the Advantages of TCP/IP?
What is the difference between a process task and threads and what are the things that are acquired by the child process from the parent process
What is socket abstraction?
How to Test with No Server?