A Computer Network implies two or more computers linked together through some software or hardware for the purpose of exchanging data and information from one computer to other computer. Microsoft .NET provides great support for writing programs that can make use of sockets for communication between two or more programs over a network.
Sockets are similar to telephone communications between people working for different companies. If I’m going to contact you from my phone, I need to know you company phone number and your extension. In socket communication, the “Phone number” is the IP address of the machine you want to talk to. You may know you want to talk to. You may know this as a dotted IP address of the form 127.0.0.1 or as a more humanly friendly representation of www.domainname.domaintype.
Sockets and Ports
A socket is the end point of a two way communication between two computer running over a network. When two or more processes communicate over a network, they communicate using Sockets. A port implies an unsigned integer that uniquely identifies a process running over a network.
The following are some of the well known port numbers distinguished by the type of services that they provide:
|Type of Service||Port Number|