1855296 Members
2841 Online
104109 Solutions
New Discussion

Re: ports

 
Waugh
Frequent Advisor

ports

Hi
Well Known Ports,
the Registered Ports, and the Dynamic and/or Private Ports.

pls explain where we can use registerd,dynamic or private ports.

Regards
Rkumar
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: ports

Matti_Kurkela
Honored Contributor

Re: ports

You can use them anywhere you need a TCP or UDP port.

Well Known Ports are just that: they are standardized default port numbers for some common services. For example, TCP/25 for SMTP, TCP/22 for SSH, TCP/23 for telnet, TCP/80 for HTTP, TCP/443 for HTTPS and so on.

The standard definition for Well Known Ports is port numbers 0-1023. In Unix-style systems, use of these ports usually requires root privileges.

You can get a Registered Port for your network application or protocol by registering it with Internet Assigned Numbers Authority, or IANA.

Private Port is when you choose a port number on your own. You can begin developing an application using a Private port, and if/when your application becomes widely used, then Register a standard port for it.

Dynamic ports are when you let the operating system assign a port number for you. If you set up a server program to use a Dynamic port, there must be some mechanism that tells your clients the correct port number to connect to. (See SunRPC services, like NFS for an example: with NFS, the rpcinfo/portmapper port is Registered and Well Known, all other ports may be Dynamic.)

MK
MK