Understanding Ports & Protocols – TryHackMe Walkthrough

Durre ShaffaDurre Shaffa
2 min read

What Are Ports in Networking?

In the world of networking, ports act like digital docking stations, much like how ships dock at specific ports in a harbor. These numerical ports (ranging from 0 to 65535) are how data knows where to go once it reaches your device. Each application or protocol communicates using its assigned port number, allowing multiple services to run on the same machine without interfering with each other.

For example:

  • Web traffic → Port 80 (HTTP)

  • Secure web traffic → Port 443 (HTTPS)

  • File sharing → Port 21 (FTP) or 445 (SMB)

  • Remote access → Port 22 (SSH) or 3389 (RDP)

Standard ports between 0 and 1024 are known as common ports, and most applications follow these standards to ensure smooth communication.


Interactive Lab Walkthrough

Lab Scenario:

You're asked to connect to an IP address (8.8.8.8) on a specific port (1234) to retrieve a flag, a practical test of understanding how ports work in real-world scenarios.

Action:

Using the interactive interface provided by TryHackMe, I simulated a connection to port 1234 on 8.8.8.8.

Outcome:

Once the connection was successfully established, the system responded with the following flag:

THM{YOU_CONNECTED_TO_A_PORT}

This confirmed that the port was open, accessible, and ready to receive communication, just like a compatible ship finding its matching port in a harbor.


Final Quiz & Flag

QuestionAnswer
What is the flag received from the challenge?THM{YOU_CONNECTED_TO_A_PORT}

Key Takeaways

  • Ports serve as unique channels through which data travels to the correct application.

  • Standard ports ensure uniform communication across devices and services.

  • The ability to manually specify and test ports is essential for troubleshooting and secure configurations.

  • Understanding ports is foundational to deeper topics like firewalls, network scanning, and intrusion detection.


Skills Practiced

Recognizing standard/common ports
Understanding TCP/UDP communication basics
Establishing port-based network connections
Interpreting real-world analogies to deepen networking knowledge


Flag Captured

THM{YOU_CONNECTED_TO_A_PORT}

0
Subscribe to my newsletter

Read articles from Durre Shaffa directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Durre Shaffa
Durre Shaffa