Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Vintage Story Port Forwarding: TCP & UDP Guide

· 6 min read · Home Networking

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Port forwarding for a Vintage Story server lets players outside your local network connect to your world. This guide walks you through opening the required TCP and UDP ports on your router, whether you're hosting for friends or a small community. You'll need access to your router's admin panel and your computer's local IP address.

What You'll Need

  • Access to your router's admin interface (usually via a web browser at an address like 192.168.1.1 or 192.168.0.1)
  • Your computer's local IP address (e.g., 192.168.1.100)
  • Your public IP address (find it by searching "what is my IP" in a browser)
  • Knowledge of the Vintage Story server port (default is 42420 for both TCP and UDP)

Step-by-Step

  1. Set a static local IP address for your server computer. Your router assigns dynamic IPs via DHCP, which can change on reboot. To avoid broken port forwards, assign a static IP. On Windows: open Network Settings → Change adapter options → right-click your adapter → Properties → Internet Protocol Version 4 (TCP/IPv4) → Properties → select "Use the following IP address" and enter an IP outside your DHCP range (e.g., 192.168.1.200), subnet mask (usually 255.255.255.0), and default gateway (your router's IP). On Linux, edit /etc/network/interfaces or use NetworkManager. On macOS, go to System Preferences → Network → Advanced → TCP/IP → set "Configure IPv4" to Manual.
  2. Find your router's IP address. On Windows, open Command Prompt and type ipconfig. Look for "Default Gateway." On macOS, go to System Preferences → Network → Advanced → TCP/IP. On Linux, run ip route | grep default. This is usually 192.168.1.1 or 192.168.0.1.
  3. Log into your router's admin panel. Open a web browser and enter your router's IP address. You'll be prompted for a username and password. If you haven't changed them, check the router's sticker or manual for default credentials (common ones: admin/admin, admin/password).
  4. Locate the port forwarding section. The menu may be labeled "Port Forwarding," "Virtual Server," "NAT," or "Applications & Gaming." It's often under "Advanced" or "Security" tabs.
  5. Create a new port forwarding rule for TCP. Click "Add" or "Create New." Enter a name (e.g., "Vintage Story TCP"). For the service type, select TCP. Enter the external port range: 42420 (or the port you configured). Enter the internal port range: 42420. Enter the internal IP address: your server's static IP (e.g., 192.168.1.200). Save the rule.
  6. Create a second rule for UDP. Repeat the same steps, but select UDP as the protocol. Some routers allow you to specify "Both" or "TCP/UDP" in one rule—if so, you only need one rule. Otherwise, create two separate rules.
  7. Enable the rules. Make sure each rule is enabled (checkbox or toggle). Save all changes. Some routers require a reboot to apply changes.
  8. Configure your Vintage Story server. If you haven't already, set the server port in the serverconfig.json file (located in the server's config folder). The default is 42420. Ensure the server is running and listening on that port.
  9. Test the port forwarding. From outside your network (e.g., using a mobile hotspot or a friend's connection), try to connect to your server using your public IP and port. Alternatively, use an online port checker tool (search "port checker") to see if the port is open. If it shows open, you're done.

Common Mistakes

  • Using the wrong IP address. The internal IP must match the static IP you set on the server computer. If the server's IP changes, the forward breaks.
  • Forgetting to forward both TCP and UDP. Vintage Story uses both protocols for different aspects of networking. Missing one can cause connection issues.
  • Typing the port range incorrectly. Some routers expect a range like 42420-42420, not just a single number. Double-check the format.
  • Not setting a static IP. If your server gets a new IP after a reboot, the port forward points to the old address.
  • Firewall blocking the port. Your computer's firewall (Windows Defender Firewall, etc.) may block inbound connections even after port forwarding. You need to allow the port in the firewall.

Tips

  • Use a port above 1024. The default 42420 is fine, but if you change it, avoid ports below 1024 as they may be reserved.
  • Keep the port consistent. Use the same port for both TCP and UDP to simplify configuration.
  • Consider a dynamic DNS service. If your public IP changes, a dynamic DNS name (like yourname.ddns.net) lets friends connect without you updating them each time.
  • Write down your settings. Note the static IP, port, and router model in case you need to reconfigure later.
  • Check if your ISP uses CGNAT. If you can't port forward even after following all steps, your ISP might be using Carrier-Grade NAT, which prevents inbound connections. You may need to request a public IP or use a VPN tunnel service.

Troubleshooting

If you've followed the steps and the port still isn't open, try these checks in order:

  1. Verify the server is running. Make sure the Vintage Story server is actually listening on the port. On the server machine, open Command Prompt and type netstat -an | findstr 42420 (Windows) or ss -tulpn | grep 42420 (Linux). You should see LISTENING entries.
  2. Check your computer's firewall. Temporarily disable the firewall (or add an inbound rule for port 42420 TCP/UDP) and test again. If it works, re-enable and add a proper rule.
  3. Test from inside your network first. Connect to your server using your local IP (e.g., 192.168.1.200:42420). If that fails, the issue is with the server or firewall, not the router.
  4. Double-check the router's WAN IP. Make sure you're testing from outside your network. Using a port checker from within your network will often show the port as closed even when forwarding works.
  5. Check for double NAT. If you have a modem and a separate router, you might have two NAT layers. Port forward on both devices, or put one in bridge mode.
  6. Reset the router's port forwarding. Delete the rules and recreate them, ensuring you save and apply changes.
  7. Try a different port. Some ISPs block certain ports. Change the server port to something like 42421 and update the forwarding rules.

Frequently Asked Questions

Does Vintage Story require both TCP and UDP?

Yes, the game uses TCP for reliable data (like chat and inventory) and UDP for time-sensitive data (like player movement). Forwarding both ensures smooth multiplayer.

What is the default port for Vintage Story?

The default port is 42420 for both TCP and UDP. You can change it in the server config file.

Can I use the same port for TCP and UDP?

Yes, TCP and UDP are separate protocols, so you can use the same port number for both. That's the default setup.

Why can't my friends connect even though the port is open?

Check that the server is running, the firewall allows the port, and you're giving them the correct public IP and port. Also, ensure they're using the same game version.

How do I find my public IP address?

Search "what is my IP" in any web browser. The result is your public IP. Note that it may change periodically unless you have a static IP from your ISP.

What if my router doesn't have a port forwarding section?

Some routers label it differently, like "Virtual Server" or "NAT." If you can't find it, check the router's manual or manufacturer's website. Some ISP-provided routers may have limited features; you may need to request a different router or use advanced settings.