Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:ports_forwarding [2025/09/28 17:52] ravagetutorials:ports_forwarding [2025/09/28 18:50] (current) ravage
Line 3: Line 3:
  
 ⏱️ **How long does it take?**  \\ ⏱️ **How long does it take?**  \\
-- If you know a bit about PCs: about 2030 minutes  \\ +- If you know a bit about PCs: about 20-30 minutes  \\ 
-- If you are a complete beginner: about 4590 minutes  +- If you are a complete beginner: about 45-90 minutes  
  
 💡 Don’t worry: It looks harder than it is.  \\ 💡 Don’t worry: It looks harder than it is.  \\
Line 16: Line 16:
 ## 🛠 Step 1 - The Ports You Need \\ ## 🛠 Step 1 - The Ports You Need \\
 - Open these ports in your router:  \\ - Open these ports in your router:  \\
-  - **UDP 36583659**  +  - **UDP 3658-3659**  
  
 --- ---
Line 25: Line 25:
  
 ### Step 2a - Find your network information \\ ### Step 2a - Find your network information \\
-1. On Windows: press **Windows key + R**, type `cmdand press Enter  \\ +1. On Windows: press **Windows key + R**, type cmd and press Enter or (Linuxopen Terminal \\ 
-   On Linuxopen Terminal  \\ +2. Type ipconfig (Windows) or ip a (Linux) and press Enter  \\
-2. Type `ipconfig(Windows) or `ip a(Linux) and press Enter  \\+
 3. Look for your network adapter (usually "Wi-Fi" or "Ethernet" \\ 3. Look for your network adapter (usually "Wi-Fi" or "Ethernet" \\
 4. Note:  \\ 4. Note:  \\
-   - **IPv4 Address:** something like `192.168.178.15 \\ +   - **IPv4 Address:** something like 192.168.178.15  \\ 
-   - **Default Gateway:** something like `192.168.178.1 \\+   - **Default Gateway:** something like 192.168.178.1  \\
  
 This tells you the **network range** (first three numbers) and your router’s IP. This tells you the **network range** (first three numbers) and your router’s IP.
Line 39: Line 38:
 ### Step 2b - Pick a safe IP for your PC \\ ### Step 2b - Pick a safe IP for your PC \\
 - Pick a number at the end of your IP that is **higher than normal** to avoid conflicts.  \\ - Pick a number at the end of your IP that is **higher than normal** to avoid conflicts.  \\
-- Example: if your IP is `192.168.178.15`, pick `192.168.178.200 \\+- Example: if your IP is 192.168.178.15, pick 192.168.178.200  \\
 - This will be your PC’s fixed IP. - This will be your PC’s fixed IP.
  
Line 51: Line 50:
 3. Right-click your connection → Properties → Internet Protocol v4 → Properties  \\ 3. Right-click your connection → Properties → Internet Protocol v4 → Properties  \\
 4. Select "Use the following IP" and type:  \\ 4. Select "Use the following IP" and type:  \\
-   - IP: your chosen IP, e.g., `192.168.178.200 \\ +   - IP: your chosen IP, e.g., 192.168.178.200  \\ 
-   - Subnet mask: `255.255.255.0 \\ +   - Subnet mask: 255.255.255.0  \\ 
-   - Default gateway: your router IP, e.g., `192.168.178.1`  +   - Default gateway: your router IP, e.g., 192.168.178.1 
  
 💡 Optional: Some routers allow **DHCP Reservation**. This automatically gives your PC the same IP and is easier. 💡 Optional: Some routers allow **DHCP Reservation**. This automatically gives your PC the same IP and is easier.
Line 59: Line 58:
 --- ---
  
-## 🌐 Step 3 – Login to Your Router \\+## 🌐 Step 3 Login to Your Router \\
 1. Open your web browser  \\ 1. Open your web browser  \\
 2. Type your **default gateway** IP (from Step 2a) into the address bar and press Enter \\  2. Type your **default gateway** IP (from Step 2a) into the address bar and press Enter \\ 
Line 66: Line 65:
 --- ---
  
-## 🚪 Step 4 – Add Port Forwarding \\+## 🚪 Step 4 Add Port Forwarding \\
 1. Look for **Port Forwarding**, **Virtual Server**, **NAT**, or **Gaming** in the router menu  \\ 1. Look for **Port Forwarding**, **Virtual Server**, **NAT**, or **Gaming** in the router menu  \\
 2. Create a new rule:  \\ 2. Create a new rule:  \\
Line 77: Line 76:
 --- ---
  
-## 🔥 Step 5 – Firewall Check \\ +## 🔥 Step 5 Firewall Check \\ 
-- **Windows:** Open Firewall → Allow a program or port → Add UDP 36583659  \\+- **Windows:** Open Firewall → Allow a program or port → Add UDP 3658-3659  \\
 - **Linux:** Use your firewall tool to allow the same ports  \\ - **Linux:** Use your firewall tool to allow the same ports  \\
- +💡 If nothing works, reset your firewall to default settings (in Windows Defender Firewall): \\ 
-💡 If nothing works, turn off your firewall temporarily to testTurn it back on afterward.+{{:tutorials:2025-09-28_20_06_20-window.png?nolink|}} \\ 
 +Then add the firewall rules with kickStart again (in options): \\ 
 +{{:tutorials:2025-09-28_20_07_24-window.png?nolink|}}
  
 --- ---
  
-## ✅ Step 6 – Test Your Game \\+## ✅ Step 6 Test Your Game \\
 1. Start NFS Underground → Create a multiplayer game  \\ 1. Start NFS Underground → Create a multiplayer game  \\
 2. Ask a friend to join   2. Ask a friend to join  
-3. Or open the NFS.onl launcher and go to Open settings → Main config → UPnP Port Forwarding and Testing. \\+3. Or open the NFS.onl launcher and go to Open options → Main config → UPnP Port Forwarding and Testing. \\
 When the new window opens, click on “Test UDP” to check if your port forwarding is set up correctly.  When the new window opens, click on “Test UDP” to check if your port forwarding is set up correctly. 
 +
 --- ---
  
Line 96: Line 98:
 - Make sure ports 3658-3659 UDP are forwarded  \\ - Make sure ports 3658-3659 UDP are forwarded  \\
 - Check firewall again  \\ - Check firewall again  \\
-- If your ISP uses **CGNAT**, normal port forwarding will not work. Then you need a VPS server [[https://youtu.be/BJJQ4vUWtjc|see Redhair’s YouTube Guide]]+- If your ISP uses **CGNAT**, normal port forwarding will not work. Then you need a VPS server [[http://wiki.nfs.onl/doku.php?id=tutorials:vps_server|see Redhair’s VPS Guide]]
  
 --- ---
Line 112: Line 114:
 - **Port** = A "door" number on your router that lets game data in or out.  \\ - **Port** = A "door" number on your router that lets game data in or out.  \\
 - **UDP** = A fast type of connection for games.  \\ - **UDP** = A fast type of connection for games.  \\
-- **IP Address** = Your PC’s "house number" inside your network.  \\+- **IP Address** = Your PC’s "house number" inside your network. \\ 
 - **Gateway** = The "main door" to your router.  \\ - **Gateway** = The "main door" to your router.  \\
 - **Router Login** = The page where you change your router settings.  \\ - **Router Login** = The page where you change your router settings.  \\
Line 118: Line 120:
 - **Port Forwarding** = Telling the router: "Send all game data on this port to my PC."  \\ - **Port Forwarding** = Telling the router: "Send all game data on this port to my PC."  \\
 - **DHCP Reservation** = A router option that gives your PC the same IP automatically.  \\ - **DHCP Reservation** = A router option that gives your PC the same IP automatically.  \\
-- **CGNAT** = Your internet provider puts many people behind one big router. Then port forwardin+- **CGNAT** = Your internet provider puts many people behind one big router. Then port forwarding will not work.  \\ 
 +- **VPS** = A rented server on the internet that can act as your host.   
 + 
 +--- 
 + 
 +# ❓ Extra Explanations 
 + 
 +- **Why pick a high number at the end?**   
 +  Routers usually give IPs automatically starting from low numbers. Picking `.200` or higher avoids conflicts with phones, laptops, or smart TVs.   
 + 
 +- **What if my network uses a different range?**   
 +  Check your current IP. Use the same first three numbers and pick a high number at the end outside the DHCP range.   
 + 
 +- **What happens if two devices have the same IP?**   
 +  Both devices will lose internet or get strange problems.  
  
 +- **Why only UDP?**  
 +  NFS Underground only needs UDP for online play. TCP is not used.