> ## Documentation Index
> Fetch the complete documentation index at: https://docs.highmark.it/llms.txt
> Use this file to discover all available pages before exploring further.

# Understanding Port Forwarding

> What is Port Forwarding and how to open ports for your server.

If you host a server (like Minecraft or a Web Server) at home, friends outside your Wi-Fi cannot connect unless you "open ports". This is called **Port Forwarding**.

### **How it Works**

Imagine your Router is a receptionist.

1. A request comes from the internet asking for "Minecraft" (Port 25565).
2. The Router blocks it because it doesn't know which computer inside the house to send it to.
3. **Port Forwarding** tells the Router: "Send anything on Port 25565 to my PC".

### **Step-by-Step Guide**

<Warning>
  Every router is different. These are general steps.
</Warning>

1. **Find your Local IP**
   * Open CMD (Command Prompt) on Windows.
   * Type `ipconfig`.
   * Note the **IPv4 Address** (e.g., `192.168.1.15`).

2. **Access Router Settings**
   * Look for "Default Gateway" in `ipconfig` (usually `192.168.1.1`).
   * Type that IP in your browser.
   * Login (Username/Password are often on a sticker under the router).

3. **Find "Port Forwarding"**
   * Look in menus like **WAN**, **NAT**, **Advanced**, or **Security**.

4. **Create a Rule**
   * **Service Name**: Minecraft (or anything).
   * **Protocol**: TCP & UDP.
   * **External Port**: 25565.
   * **Internal Port**: 25565.
   * **Internal IP**: Your computer's IP (`192.168.1.15`).
   * **Save/Apply**.

Now your friends can connect using your **Public IP** (search "what is my ip" on Google).

<Info>
  Guide created by HighMark - All information and contacts on my [official website: Highmark.it](https://highmark.it)
</Info>
