Smart Systems for Home

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

Don't Starve Together Server Ports & Port Forwarding

· 5 min read · Home Networking

In this article
  1. What Ports Does Don't Starve Together Use?
  2. How Port Forwarding Works
  3. Step-by-Step Port Forwarding Guide
  4. Testing If Port Forwarding Worked
  5. Common Problems and Fixes
  6. Alternatives to Port Forwarding
  7. Frequently Asked Questions

Don't Starve Together (DST) requires you to open specific ports on your router (port forwarding) if you want to host a dedicated server that friends can join over the internet. This article explains which ports DST uses, how to forward them on your router, and how to troubleshoot common connection issues.

What Ports Does Don't Starve Together Use?

DST uses two main ports for its dedicated server, both using the UDP protocol:

  • Game Port (default: 10999) – This is the primary port that players connect to. It handles all gameplay data.
  • Steam Authentication Port (default: 27016) – This port is used for Steam's matchmaking and authentication services, allowing the server to appear in the server browser and verify player ownership.

You can change both ports in your settings.ini file (located in the Don't Starve Together folder in your Documents). If you change them, you must forward the new ports instead.

How Port Forwarding Works

Your home network uses a router that assigns local IP addresses (like 192.168.1.10) to devices. When a friend tries to connect to your server, they send data to your public IP address – but the router doesn't know which device should receive it. Port forwarding creates a rule that says: "Any UDP traffic arriving on port 10999 should be sent to the local IP of the computer running the DST server."

Without this rule, the router drops the incoming connection, and your friend sees "Connection Failed" or "Server Not Responding."

Step-by-Step Port Forwarding Guide

  1. Find your router's gateway IP: Open Command Prompt (Windows) and type ipconfig. Look for the "Default Gateway" – usually something like 192.168.1.1 or 192.168.0.1.
  2. Log into your router: Open a browser, enter that IP, and log in with your admin credentials (often printed on the router or in its manual).
  3. Find the Port Forwarding section: This is often under "Advanced," "NAT," "Virtual Server," or "Gaming." The exact name varies by router brand.
  4. Create a rule for the game port:
    • Name: DST Game
    • Protocol: UDP
    • External Port: 10999
    • Internal Port: 10999
    • Internal IP: The local IP of your server computer (e.g., 192.168.1.50)
  5. Create a second rule for the Steam port: Repeat the same steps with port 27016. Some routers allow a range, but separate rules are safer.
  6. Save and apply: Reboot the router if prompted.
  7. Set a static IP for your server PC: In Windows, go to Network Settings > Adapter Options > IPv4 Properties and assign a fixed IP (e.g., 192.168.1.50). This prevents the IP from changing after a reboot, which would break the forwarding rule.

Testing If Port Forwarding Worked

After setting up the rules, verify they work before inviting friends:

  • Use an online port checker: Websites like canyouseeme.org let you enter a port number and check if it's open. Enter 10999 and 27016 (UDP – note that some checkers only test TCP; DST needs UDP, so a TCP test may show closed even when UDP is fine).
  • Check the server log: When you start a DST dedicated server, the console shows "Server started on port 10999" and "Steam authentication port 27016." If it says "Bind failed," the port is already in use or blocked by Windows Firewall.
  • Ask a friend to try: The most reliable test is having someone outside your network attempt to join. If they can see the server in the browser but can't connect, the game port is likely closed.

Common Problems and Fixes

Even with correct forwarding, things can go wrong. Here are the most frequent issues:

  • Windows Firewall blocking: Windows may block the DST server executable. Go to Control Panel > Windows Defender Firewall > Allow an app, and add both dontstarve_dedicated_server.exe and dontstarve_dedicated_server_steam.exe (or the Linux equivalent).
  • Double NAT: If your internet goes through two routers (e.g., a modem from your ISP plus your own router), you need to forward ports on both devices, or put one in bridge mode.
  • CGNAT (Carrier-Grade NAT): Some ISPs place customers behind a shared public IP. You can't port forward through CGNAT. Check if your public IP (what you see on a site like whatismyip.com) matches your router's WAN IP. If they differ, you're behind CGNAT and need a VPN or a static IP from your ISP.
  • Port already in use: Another program (like a previous server instance) may be using the same port. Close it or change the DST port.
  • Wrong local IP: After a router restart, your PC might get a new IP. Always set a static IP as described above.

Alternatives to Port Forwarding

If port forwarding is impossible (CGNAT, no router access, or just too complicated), you have alternatives:

  • Use a hosting service: Rent a dedicated DST server from a game server provider. They handle ports and uptime for a monthly fee.
  • Use a VPN like Hamachi or Radmin VPN: These create a virtual LAN over the internet. Friends install the same VPN, join your network, and connect to your server using the VPN IP instead of the public one. This bypasses port forwarding entirely.
  • Play with friends via Steam's "Invite" feature: For small groups, the host can start a non-dedicated server (from the game menu) and invite friends through Steam. This uses Steam's relay servers and doesn't require port forwarding.

Frequently Asked Questions

Q: Do I need to forward both TCP and UDP?
DST uses UDP only for its game and Steam ports. Forwarding TCP for these ports is unnecessary and won't hurt, but it won't help either.

Q: My port checker says the port is closed, but my friend can join. Why?
Many online port checkers only test TCP. DST uses UDP, which those tools cannot verify. The friend's successful connection is the real proof.

Q: Can I use the same port for multiple DST servers?
No. Each server instance needs a unique game port (e.g., 10999, 11000, 11001) and a unique Steam auth port (e.g., 27016, 27017). Forward each one separately.

Q: What is the difference between the game port and the Steam auth port?
The game port carries actual gameplay data. The Steam auth port lets Steam verify that players own the game and helps the server appear in the in-game server browser. Both must be reachable.

Q: I changed my server's ports in settings.ini, but now friends can't find it.
You must update the port forwarding rules to match the new ports. Also, ensure the new ports are not already used by another application.

Q: Is it safe to expose my computer to the internet with port forwarding?
Port forwarding only opens specific ports. DST's ports are generally safe, but keep your server software updated and avoid forwarding ports you don't need. Using a separate machine or a virtual machine adds an extra layer of isolation.