Discussion Locked

Socket & Port

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Can anybody tell me the actual difference between socket and port when we are confined to java

1 reply

by kperry

The socket is the building block for communication. The port is the number that it will listen at or talk from. A socket is opened and you need to have an ip address and a port number for it to send or recieve. Think of the socket as the telephone and the ip address / port as the number you can take calls at or make calls to.

Hope that helps..

Keith Perry

This discussion is closed to new replies.