# Port Forwarding

## Detailed instructions for Various Routers

* [OpenWRT instructions](https://forum.openwrt.org/t/tutorial-how-to-add-a-device-to-dmz-on-openwrt/190247)

## Generic Router Step-by-Step Guide

**Step 1: Access Router Settings**

1. **Connect to the Router**: Ensure your computer is connected to the router via Wi-Fi or Ethernet.
2. **Open a Web Browser**: Launch your preferred web browser.
3. **Enter the Router's IP Address**: Type the router's IP address into the address bar and press Enter. Common router IP addresses are `192.168.1.1` or `192.168.0.1`.

**Step 2: Log in to the Router**

1. **Enter Username and Password**: You will be prompted to log in. Enter the router's admin username and password. If you haven't changed these, they are often set to default values like `admin` for both username and password. Check your router's manual for default credentials.

**Step 3: Locate Port Forwarding Settings**

1. **Navigate to Port Forwarding**: Once logged in, look for the Port Forwarding section. This may be under Advanced Settings, NAT, or similar headings.

**Step 4: Set Up Port Forwarding**

1. **Create a New Port Forwarding Rule**: Look for an option to add or create a new port forwarding rule.
2. **Configure the Rule**:
   * **Service Name**: Name the rule (e.g., "Open All Ports").
   * **Protocol**: Select both TCP and UDP.
   * **External Ports**: Enter a range from `1` to `65535`.
   * **Internal IP Address**: Enter the IP address of the DeEEP device. Ensure the device has a static IP address to prevent IP changes.
   * **Internal Ports**: Often, this will be the same as the external ports, `1-65535`.

**Step 5: Save and Apply Settings**

1. **Save/Apply Changes**: Save the new rule and apply the settings. The router may need to restart to apply these changes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.deeep.network/hardware/setup-your-hardware/port-forwarding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
