I am new to Terraria, and I want to play with my friend. But for some reason, it says 'connecting' for a very long time. I have his IP, and his port, but it will not work.
Make sure your friend has forwarded the ports that Terraria servers require. There's a short guide on how to do it here.
- Double check your friend's IP (ask him to go to www.whatismyip.com and read off the address to you). IP addresses can change occasionally.
- Double check the port. Your friend is capable of setting it to something non-standard, ask him what it is (standard is 7777).
- Get your friend to log into his router (usually 192.168.0.1 or 192.168.0.0, look it up for his specific router).
- Click on a port-forwarding or NAT menu button.
- Add a rule for Terraria as described in the guide.
Beyond that, you will need to provide more information on errors or your friend's setup before we can determine what could be causing your connection troubles.
I think it's much easier to use Hamachi.
Both players will need to download Hamachi
The Hamachi website has gotten a bit confusing these day because they try to trick you into downloading LogMeIn. Hamachi is sort of a legacy product they keep around.
Make an account for their website.
Click "Try it Free" to download the installer. It's actually completely free. Just uncheck "Try Pro Version for 15 days" to avoid any more commericals.
Install Hamachi and sign in.
Hamachi will automatically assign virtual IP addresses to each person.
Make and name a group in Hamachi.
Have your friend ask to join the group on the Hamachi website.
Approve the join request on the website.
The player hosting the game starts the server.
The player joining the game enters the Hamachi IP address.
Why is this better than using your actual IP address?
As Sadly Not mentioned, the host has to configure his or her router to forward data on a certain port (port 7777 for Terraria) to the Terraria application. (You can read more about port forwarding) Unfortunately, configuring a router for the first time can be like traversing the Labyrinth of Crete - lonely and full of swearing.
The main annoyance is that, most likely, nobody in the house knows the password to the router, so you can't even start your grim adventure in the first place.
If you're the reincarnation of Theseus, however, here's a nice site with instructions (sometimes outdated) for different router, and a video.
Hamachi creates a Virtual LAN.
Remember those LAN parties where everybody brought their desktops and connected to one router and games just figured out how to connect? No? Anyways, Hamachi does that with software. Everybody in the same Hamachi group will seem like they're all locally connected
And that means no port forwarding. Yay!
Apparently using Hamachi reduces the lag in a multiplayer game too. "Can anything be done to fix the lag in Terraria Multiplayer?"