What is the port

Find out the ports in the network

When making a network request, useIP address, Or hostname, and aport.

like this:

  • http://localhost:8080(Port 8080)
  • ftp://127.0.0.1:29392(Port 29392)

What is a port anyway?

This technology was introduced to allow multiple applications to respond with the same protocol on the same computer.

For example, we may have a web server running on the computer. You can start a second web server on another port.

Assume that the first one is running on port 80, which is the default port for web servers that use the HTTP protocol. The same port can run on any port other than port 80. For example, port 8080 or port 81 is usually used.

By default, HTTPS runs on port 443.

Each protocol has a different default port, but the program does not need to use the default port. They can use any unused port between 1 and 65535 (16-bit unsigned = 2^16). Here is oneList of default port numbersApplicable to all protocols based on TCP and UDP.

in history:

  • FTP usage 21
  • Telnet use 23
  • SMTP usage 25
  • POP3 use 110

.. Although now for all these services, you should use other port-based security counterparts.


More web tutorials: