O'Reilly logo

Torque 3D Game Development Cookbook by David Wyand

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What ports are needed to be open or forwarded for a multiplayer server

When running a multiplayer game server (either dedicated or hosting as a client/server), we need to ensure that clients can connect as they may be blocked by a router on the network. This requires knowing which network ports should be open, or forwarded to the server.

In this recipe, we will learn which ports Torque 3D uses by default, and how to change them to suit your game.

How to do it...

On your router, forward or open UDP ports 28000 through 28009 to your game server. This is required for both a dedicated server as well as a Torque 3D client hosting a game.

How it works...

Torque 3D uses UDP to communicate between the server and connected clients. When the server starts, one ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required