Host a server

Be the host: How to set up your own game server.

In this tutorial, you’ll learn how to host a simple server directly from the game. If you hit any snags or have questions, hop into our Discord — we’re always happy to help!

While this method is quick and easy, there are a few limitations:

  • You’ll have fewer game settings to customize. []

  • The person hosting the server must also be playing on it.

For a full-featured, production server, you’d want to use a dedicated server. However, this quick setup is usually enough for most situations.

Important Notes
  • You only need port forwarding if you want your server accessible over the internet (WAN), and only the host needs to set it up. []

  • Disable unused network adapters; keep only the one(s) you’ll host on (details below).

  • When prompted by Windows Firewall, allow the game (or BF2142Unlocker) on both Private and Public networks to avoid connection issues.

  • For WAN servers: LAN players at home join via your local IP; friends elsewhere join via your public IP — assuming port forwarding is configured correctly.

  • If you launch the game with a mod, any server you host will also be modded.

LAN Over Internet

If port forwarding isn’t feasible but you still want to play online with friends, a VLAN is your best option.

Apps like Hamachi, GameRanger, or Radamin VPN create a secure virtual network that simulates a LAN. Typically, you and your friends just:

  • Install the app and create accounts

  • Create or join a room to connect to the same LAN

  • Use the IP address assigned by the app to host or join a server

For setup details, refer to the app’s documentation or resources.

Disabling Network Adapters

If your PC has multiple network adapters (e.g., from Hamachi, VirtualBox, VMware, ExpressVPN), the game may pick the wrong one when hosting.

To fix this, disable adapters you’re not using and keep only the one(s) needed for hosting. []

  1. Go to Control Panel → Network and Sharing Center → Change adapter settings.

  1. Right-click the adapter you want to disable → Disable.

If you can’t disable it via UI, use PowerShell (Run as Administrator):

  • Disable: Disable-NetAdapter -Name "Adapter Name"

  • Enable: Enable-NetAdapter -Name "Adapter Name"

Reference: https://superuser.com/questions/610733/networking-games-cant-see-join-anyone-elses-lan-servers-unless-i-host

Port Forwarding Troubleshoots
  • If you configure port forwarding after the server is running, restart the server for changes to take effect.

  • If port forwarding is set up correctly but others still can’t connect, your ISP may be using CGNAT (Carrier-Grade NAT), which blocks port forwarding. Contact your ISP to opt out.

  • Alternatively, host a LAN server over a VLAN so friends can still join and play together.

Hosting a LAN Server

A local server is a game server that shows up in your local server browser and can be accessed by anyone on your LAN network. This option is perfect for hosting a game night with family at home, or for playing with friends over the internet using a virtual LAN tool.

1

Disable any unused network adapters (see the expandable above).

2

Select MULTIPLAY → LOCAL.

3

In the CREATE tab, configure your server settings and click START SERVER.

Check out the Server Settings guide for details on extra cutomization settings.

4

While the server is launching (on the loading or briefing screen), you’ll see your server’s local IP address displayed.

Hosting a Private WAN Server

A private WAN server is a game server that doesn’t show up in the online server browser, but friends can still join if they know your public IP address. This is a great option for hosting a game night with friends, without needing any virtual LAN tools.

1

Close the game if it’s running.

2

Disable any unused network adapters (see the expandable above).

3

In your home router’s control panel, forward these ports to your device's local IPv4 address:

  • 29900 (UDP or Both) - Login Service

  • 17567 (Both) - Game Service

If you’re using BF2142Unlocker, make sure to also enable these two extra ports:

  • 8085 (TCP or Both) – Unlock Service

  • 18300 (TCP or Both) – Login Service

You may refer to this guide on how to perform port forwarding.

4

Visit whatismyip.com to find your public IPv4 address, and share it with your friends.

5

Log in to the game.

6

Select MULTIPLAY → LOCAL.

7

In the CREATE tab, configure your server settings and click START SERVER.

Check out the Server Settings guide for details on extra cutomization settings.

Hosting a Public WAN Server

A public server is a game server that appears in the online server browser and can be accessed by anyone on the Internet. Since your server will be visible to everyone, random players can join your game.

1

Close the game if it’s running.

2

Disable any unused network adapters.

Refer to the expandable above for details on how to do so.

3

In your home router’s control panel, forward these ports to your device’s local IP address:

  • 29900 (UDP or Both) - Login Service

  • 17567 (Both) - Game Service

If you’re using BF2142Unlocker, make sure to also enable these two extra ports:

  • 8085 (TCP or Both) – Unlock Service

  • 18300 (TCP or Both) – Login Service

You may refer to this guide on how to perform port forwarding.

4

Open File Explorer and go to C:\Users\<YOU>\Documents\Battlefield 2142\Profiles.

5

Open Global.con with a text editor.

6

Find the line starting with GlobalSettings.setDefaultUser. If its value is 0001, open the folder named 0001.

7

Inside that folder, open ServerSettings.con with a text editor.

8

Find the line GameServerSettings.setInternet 0 and change the 0 to 1. Save the file.

9

Go to whatismyip.com to find your public IPv4 address and share it with your friends.

10

Log in to the game.

11

Select MULTIPLAY → LOCAL.

12

In the CREATE tab, configure your server settings and click START SERVER.

Check out the Server Settings guide for details on extra cutomization settings.

13

Your server should now appear in the online server browser.

To check if everything is set up correctly, press Esc in-game and go to the server browser — your server should be listed there.

If port forwarding isn’t set up properly, your server will still show up in the list, but others won’t be able to join.

Last updated

Was this helpful?