🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Multiplayer without port forwarding

Started by
2 comments, last by Pokerjoker 8 years, 3 months ago
Hey guys,

I was wondering how Games like Terraria's new multiplayer works, as in before that big update last year, a multiplayer server required portforwarding but now people can just invite there friends to play a game and it requires no portforwarding what so ever.

So what I am wondering is why doesn't it require portforwarding and how does that way work, as I assume they are using some sort of tech valve has, like steamworks?

Cheers

Edit:
https://partner.steamgames.com/documentation/api

So I was looking around, is it peer to peer
Advertisement

Almost certainly they implemented NAT punchthrough and/or UPNP.

See the Forum FAQ entry #9 for links to reading material.

If it's a Steam game and you're using the Steam SDK it's all done for you. Steam does the tunneling and packet reflection for you. It uses libjingle for nat-punch-through, and dedicated relay servers.

Everything is better with Metal.

Cheers

This topic is closed to new replies.

Advertisement