Thursday, October 25, 2012

Port Numbers


Here kiddy has shared things she found on port numbers. Take a look and feel free to add something. J


A computer or program connects to something else in the internet via a port. Purpose of ports is to uniquely identify different applications running on a single computer and thereby enable them to share a single physical connection like internet. In other words, they help to distinguish different services on a server.


Any server machine makes its service available to the internet using numbered ports, one for each service that is available on the server. For example: MySQL server would typically be available on port 3306.As a result of this client can connect to a service at a specific IP address and on a specific port.

When the server accepts connection on a port from the outside world, that particular client can connect to the port from anywhere on the internet and use service. This enables communication between different applications and therefore make possible for developers to reuse services instead of writing new ones.

There are 3 types of ports.
0-1023 well known ports
1024-49151 Registered
49152-65536 Dynamic ports

In brief, Port number and user’s IP address combine into the ‘Who does What’ information kept by every internet service provider.

Reference

2 comments: