Curious Minds

Clear answers to science and history questions

Terraria 2 Player: How to Set It Up

· 6 min read · Science

Playing Terraria with a friend changes the whole game. You can split up to explore different biomes, pool your resources, and take on bosses that are genuinely tough alone. This guide walks you through every way to set up a two-player game, from the simplest local option to a dedicated online server, and covers what to do when things don't connect.

What You'll Need

  • Two copies of Terraria – one for each player. The game does not support same-screen split-screen on PC, so each player needs their own device and account.
  • A stable internet connection for online play. For local co-op on the same network, a router is enough.
  • Optional: a free Terraria account – not required, but it lets you use the in-game friend list and join quickly.

Step-by-Step

Method 1: Local Multiplayer (Same Wi-Fi)

  1. Host the game. On the first computer, launch Terraria and select Multiplayer from the main menu.
  2. Choose Host & Play. This creates a world that stays open while you play. You can select an existing character and world, or create new ones.
  3. Set the password (optional). If you want to keep the game private, enter a password. For local play, you can leave it blank.
  4. Start the world. The game will load and show a screen with the world name and player count.
  5. On the second device, launch Terraria and select Multiplayer → Join via IP.
  6. Enter the host's IP address. On the same network, this is usually something like 192.168.1.5. To find it on Windows, open Command Prompt and type ipconfig; look for the IPv4 address under your active connection. On Mac, go to System Preferences → Network.
  7. Enter the port (default: 7777). The game will fill this in automatically, but confirm it matches the host's port.
  8. Join. If the password was set, enter it when prompted. You should now see the host's character in the world.

Method 2: Online Multiplayer (Over the Internet)

  1. Host the game. Follow steps 1–4 from the local method, but this time, you'll need to open a port on your router.
  2. Find your public IP. Search "what is my IP" on the host machine. This is the address your friend will type in.
  3. Open port 7777 on your router. Log into your router's admin page (usually at 192.168.1.1 or 192.168.0.1), find the Port Forwarding section, and forward TCP/UDP port 7777 to the host computer's local IP. This step is essential for most home connections.
  4. Share your public IP and port with your friend. They will use Join via IP and enter that IP, followed by the port (e.g., 123.45.67.89:7777).
  5. Alternatively, use a third-party service like Hamachi or Radmin VPN. These create a virtual LAN, so you can skip port forwarding. Both players install the software, join the same network, and then the host's virtual IP is used in the Join via IP screen.

Method 3: Dedicated Server (Most Stable)

  1. Run the server file. On the host machine, navigate to your Terraria folder (usually C:\Program Files (x86)\Steam\steamapps\common\Terraria). Look for TerrariaServer.exe (Windows) or TerrariaServer (Mac/Linux).
  2. Follow the prompts. The server will ask you to choose a world, set a password, and specify the port (7777 by default).
  3. Keep the server window open. The server runs in a separate console window. Players connect to it just like a hosted game, using the host's IP and port.
  4. For online play, you'll still need to port forward, or use a VPN service.

Common Mistakes

  • Using the wrong IP. Many people try to use their public IP for local play, or their local IP for online play. For local, use the local IP (192.168.x.x). For online, use the public IP.
  • Forgetting to port forward. If your friend can't connect over the internet, port forwarding is the most common culprit. Without it, your router blocks the incoming connection.
  • Firewall blocking Terraria. Windows Firewall or antivirus software may silently block the game. Make sure Terraria and the server executable are allowed through.
  • Version mismatch. Both players must have the same version of Terraria. If one has a newer update, they'll need to roll back or wait for the other to update.
  • Typing the port incorrectly. The game defaults to 7777, but if you changed it, you must include the correct port in the join address.

Tips

  • Use a password even for local games. It prevents random people on the same network from joining.
  • Designate a host. The host's connection determines the game's stability. If the host has a weak connection, both players will lag.
  • Save often. Terraria autosaves, but it's a good habit to manually save before quitting.
  • Use the in-game friend system. If you're on Steam, you can join a friend's game directly from the Steam overlay, which bypasses IP entry.
  • For the smoothest experience, consider renting a dedicated server from a hosting provider. This avoids all port forwarding and host lag.

Troubleshooting

Can't connect to the host

  • Check the IP and port. Re-enter them carefully. A single typo will fail.
  • Test the connection. On the host machine, open Command Prompt and type from the second device to see if they can reach each other.
  • Disable firewalls temporarily. If the game connects after disabling Windows Firewall, you know the firewall is the issue. Add Terraria to the allowed list permanently.
  • Restart the game. Sometimes the game's network stack gets stuck. Close and relaunch both clients.

Online play fails but local works

  • Port forwarding is definitely the issue. Double-check that you forwarded both TCP and UDP on port 7777 to the correct local IP. The local IP may change if the host's device restarts; set a static IP in the router settings.
  • Use a VPN. If port forwarding is too complicated, Hamachi or Radmin VPN will bypass it entirely.

Game lags or disconnects

  • Host's upload speed. Terraria doesn't need much bandwidth, but a poor upload speed will cause rubber-banding. Test your speed online.
  • Reduce the player limit. If you have more than two players, it increases load. For two players, it's usually fine.
  • Switch to a dedicated server. Hosting from the game client uses more resources. A dedicated server is more stable.

Frequently Asked Questions

Can we play split-screen on the same console?

Yes, on Xbox and PlayStation, Terraria supports local split-screen with up to four players. On PC, there is no split-screen option.

Do both players need to own the game?

Yes, each player needs their own copy of Terraria. There is no guest mode or shared copy for online play.

Can we play cross-platform?

No. Terraria does not support cross-platform play. PC players can only play with other PC players, and similarly for consoles and mobile.

How do I join a friend's game on Steam?

Open your Steam friends list, right-click on your friend's name, and select "Join Game" if they are playing Terraria. This works only if they have the game set to invite friends or public.

What is the default port for Terraria?

The default port is 7777. You can change it in the server settings, but both host and joiner must use the same port.

Can I host a server without port forwarding?

Yes, using a VPN like Hamachi or Radmin VPN, or by using a dedicated server hosting service. These services handle the connection for you.

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