You open an app, try to connect to a server, and nothing happens. The internet itself seems fine. Other websites load normally. So why is this one connection being stopped?

A firewall may be blocking the specific port that the application uses. Think of a port as a numbered doorway into a computer or network. A firewall decides which doorways are allowed to receive traffic and which ones should stay closed.

A Firewall Doesn’t Block Everything

This is where firewalls get interesting. A firewall usually isn’t trying to shut down all network traffic. That would make the computer pretty useless. Instead, it watches network connections and applies rules to decide what gets through.

One rule might allow normal web traffic on port 443. Another could block traffic arriving through a port that isn’t needed. Because each service uses a particular port, blocking one port can stop that service while everything else keeps working.

Why Block a Port at All?

• An unused port is usually better closed. Leaving it open for no reason just creates another doorway that someone could test.

• Some ports attract unwanted traffic because common services are known to use them, so administrators often restrict access rather than letting anyone connect.

• Internal systems are different. A port might be perfectly acceptable inside a company network but blocked from the public internet, which is a sensible boundary.

How Does the Firewall Decide?

The firewall checks its rules against network traffic. It can look at the port involved along with information such as the direction of the connection and the network address involved.

So imagine your computer wants to connect to a server using TCP port 22. If the firewall has a rule that denies that connection, the traffic gets stopped before the application can establish its session.

But the same computer might still connect to a website over port 443. Different port. Different rule. Different result.

It’s Often About the Application

Sometimes the blocked port isn’t obvious because the application doesn’t tell you much. A program may simply show a connection error, while the firewall is quietly doing exactly what it was configured to do.

Why Some Ports Stay Blocked

Administrators often block ports because they don’t want unnecessary services exposed. That’s especially important on servers that can be reached from outside the local network.

And blocking a port doesn’t always mean the service itself is dangerous. The service could be completely legitimate. The issue is who should be allowed to reach it.