DirectX DirectPlay ports
Many games use the DirectPlay feature of DirectX to play on the internet. The games below that require these ports to be forwarded will say so.
TCP port 47624, TCP port 6073, and both TCP and UDP for ports 2300 to 2400 must be forwarded.
Giants Citizen Kabuto (PC)
The UDP ports 15000-16375 must forwarded to host.
The UDP port 19711 must be forwarded to permit players to join a game. Note that this port can be changed by starting server from the command line as described in the documentation that came with the Giants patch version 1.4. If you do change this port all clients joining this game must know the new port number. Changing this port would also likely prevent any Gamespy users from being able to join your game despite its appearance of not being locked -- something guaranteed to annoy them.
The UDP port 8911 must be forwarded for the game to appear on Gamespy.
iptables -t nat -A PREROUTING -i [ethX] -p udp --dport 15000:16375 -j DNAT --to-dest [serverip]
iptables -A FORWARD -p udp -i [ethX --dport 15000:16375 -d [serverip] -j ACCEPT
iptables -t nat -A PREROUTING -i [ethX] -p udp --dport 8911 -j DNAT --to-dest [serverip]
iptables -A FORWARD -p udp -i [ethX] --dport 8911 -d [serverip] -j ACCEPT
iptables -t nat -A PREROUTING -i [ethX] -p udp --dport 19711 -j DNAT --to-dest [serverip]
iptables -A FORWARD -p udp -i [ethX] --dport 19711 -d [serverip] -j ACCEPT
Frequency (PS2)
UDP port 10075 should be forwarded to your Playstation2 IP address to allow you to Join games on the freqnet game service. Port 7657 is used for chat, but does not require forwarding. Port 10079 is also used by the game to communicate with Sony servers, apparently, but does not require forwading.
Jedi Knight II: Jedi Outcast (PC)
The LucasArts site says UDP ports 28060-28062 and 28070 to 28081 are all that are needed, but this is insufficient. Forwarding UDP ports 28060 to 28500 allows about 8 people to join, maybe more. I initially forwarded port just to 28100 but some were unable to connect.
Hosting as a "Dedicated: Internet" server with UDP port 28060 open and forwarded in the above example lists the server on Gamespy and the in-game browser and allows others to connect.
Neverwinter Nights
UDP Ports 5120 to 5300 must be forwarded to your server for normal play. Gamespy support requires an unknown port.
Operation Flashpoint
Forwarding the regular DirectPlay UDP ports 2300 to 2400 along with the UDP port 2234 and TCP port 2234 works when serving this game.
Others note that tcp and udp for port 2235 is also needed, but I have tested with one player connecting and had no problem with just 2234 opened.
I do not know how to show the game server on Gamespy.
Tony Hawk Pro Skater 4 (PS2)
Forwarding TCP 5150 and UDP 5150 permits hosting a game online. If you do not have these ports forwarded, you will be able to host a game but will be informed that it does not show up on Gamespy and will therefore have nobody be able to join it. Note: This conflicts with one port for Neverwinter Nights.
Unreal Tournament
UDP ports 7777 to 7779 are required, with additional ports after that (e.g. 7780+) are needed for people to join into the game, with more ports needed for more players. Port 27900 must also be added for server query if master uplink is enabled on the server. I forward up to 7799 to support lots more players in the server. I also forward port 27500. Other experimentation shows that some firewalls need a "trigger port" to be set to UDP 7777. I do not know if these ports show the server on Gamespy.
Terminus
UDP port 12287 is required to host a server behind a firewall. This works for at least one player logging into the server.
Total Annihilation
After a long search I found the TA_rulewriter perl script. Edit the script, then run it to dump out a file containing a set of iptables rules. These rules amount to inbound and outbound UDP and TCP forwarding on ports 2300 to 2400 and on port 47624. Those are the DirectX ports, of course, but this Perl script must note them individually with the ESTABLISHED keyword thrown in. You can download TA_rulewriter from my file archive. Look under the Games section. This script works on my Redhat Linux 7.1 router.
Other sites
Here are other sites which have port lists for gaming:
PracticallyNetworked.com game ports list.
Comments
Post new comment