BF2Hub.com - Your Battlefield 2 rescue!
Login to your BF2 Account

Server Setup

Posts from @BF2Hub

Battlefield2 Server Setup

Setup your Battlefield2 servers for the BF2Hub Network by downloading the files for your server's operating system and following the given instructions.

To setup a Battlefield2 Ranked Server please apply for a BF2Hub ranked license here.

Microsoft® Windows®

  1. Install BF2 Dedicated Server 1.50 - Windows (Build 1.5.3153-802.0) (if not done already)
  2. Download BF2Hub-Unranked-Windows-R3.zip
  3. Follow the included installation/upgrade guide (BF2Hub-Unranked-Windows-R3.txt)
  4. Make sure to configure your servers in compliance with the Server Policy.

GNU/Linux

  1. Install BF2 Dedicated Server 1.50 - Linux (Build 1.5.3153-802.0) (if not done already)
  2. Download BF2Hub-Unranked-Linux-R3.tar.gz
  3. Follow the included installation/upgrade guide (BF2Hub-Unranked-Linux-R3.txt)
  4. Make sure to configure your servers in compliance with the Server Policy.

Ports

Make sure you setup your firewall to allow the following ports accordingly: *

  • Outgoing UDP 27900
  • Outgoing UDP 29910
  • Outgoing UDP 29960
  • Outgoing TCP 80
  • Incoming UDP 16567 (might be different - see sv.gameport in your mods/bf2/settings/serversettings.con)
  • Incoming UDP 29900 (might be different - see sv.gameSpyPort in your mods/bf2/settings/serversettings.con)

Further ports might be opened when using ingame VOIP.

BF2Hub periodically checks your server reachability by querying your servers' gamespy ports to ensure that they can be found by players.

* commonly used ports (e.g. DNS) are omitted here for the sake of simplicity

Forwarding when behind NAT routers

If you host a server at home and use a router, you are most likely using NAT. Unfortunately for server hosting, NAT hides the inner network (e.g. alongside your server) from the internet - only the router is directly reachable. This means, IPv4 services behind the router (like BF2 server) are not reachable from the internet without further setup at your router - you have to setup port forwarding.

Make sure you forward the following ports to your server's IP address in your LAN:

  • UDP 16567 (or what is setup at sv.gameport in your mods/bf2/settings/serversettings.con)
  • UDP 29900 (or what is setup at sv.gameSpyport in your mods/bf2/settings/serversettings.con)