A port in networking acts like a gateway that directs data to the right program on a device. An IP address shows which device should receive the data, but it does not tell which application must handle it. That is where ports come in.
Think of it this way: The IP address is the building’s address, while the port number is the room number. Together, they make sure information reaches the correct destination.
Port numbers range from 0 to 65,535. Each number represents a specific service or function. This wide range allows many applications to run on a single device without interfering with each other.
The range is divided into three categories:
Commonly used by applications, less standardized
1. A firewall acts as a security guard for your network. It checks the data entering and leaving your device and decides whether to allow or block it. To make this decision, firewalls look at port numbers.
2. port represents a specific service. For example, web traffic uses port 80 or 443, while email services use ports like 25 or 587. If a firewall blocks a port, the related service cannot communicate through the network.
3. This control keeps your system safe. For instance, if a hacker tries to enter through an unused port, the firewall can close it immediately. At the same time, it allows trusted ports to stay open so normal tasks like browsing, emailing, and file sharing continue without interruption.
Read More: NetworkSherlock: Porwerfull Port Scanning With Shodan
Both git fetch and git pull talk to a remote repository, but they do very different things to your…
Sometimes the change you need already exists, just on the wrong branch. A hotfix lands…
Email is still one of the most important communication channels inside modern applications. Password resets,…
Nginx is a high-performance web server and reverse proxy trusted by some of the largest…
ufw (Uncomplicated Firewall) sits on top of iptables (or nftables on newer systems) and replaces…
When you share a server with a team or investigate unexpected activity, the first question…