Tuesday, February 7, 2017

Why use port number after URL?


Port Number:
In computer networking, port numbers are part of the addressing information used to identify the senders and receivers of messages. 

Port numbers are associated with TCP/IP network connections. They allow different applications on the same computer to share network resources simultaneously.

As computers and internet became popular and offered many services, it became necessary to identify each service uniquely, and hence in computer networks the term port was introduced.

The port number is a 16 bit binary number in the TCP. Therefore the port number is in the range of 0-65535.The port numbers are divided into three ranges.
  • Well Known ports.
  • Registered Ports.
  • Dynamic Ports/Ephemeral ports


Well known Ports
The port numbers ranging from 0-1023.They are assigned to standard server processes such as FTP, Telnet. most of the popular services are under these range only such as 21 for FTP,80 for HTTP,443 for HTTPS, 23 for TELNET and 22 for SSH.

Registered Ports:
The ports ranging from 1024 - 49151 are to be registered with IANA to prevent duplicating. They can be used for proprietary server processors or nay client process. Registered ports; meaning they can be registered to specific protocols by software corporations.

Dynamic Ports:
49152 to 65536 - Dynamic or private ports; meaning that they can be used by just about anybody.



How to Find an IP Address and Port Number




No comments:

Post a Comment

Autoboxing and Unboxing

  Autoboxing  is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper cl...