⑩ Host a server

This tutorial will guide you through three different ways to host a server.

In this tutorial, you will learn how to host a simple server just by using the game itself.

  • Port forwarding is only required for WAN servers.

  • Only servers are required to do port forwarding.​

  • A server becomes a modded server if the server hoster launched the game with a mod.

However, there are always some bad things behind something that is quick and easy to set up:

  • There are fewer game settings available for you to configure.

  • The server hoster has to be as well.

​That's why for a production server, it's always better to host it with a dedicated server client. But this quick setup method should be already sufficient for most occassions.

Port forwarding is not working!?

If you port forwarding is configured after the server is running, you need to reopen the server.

If you have properly configured port forwarding but still no one can connect to it, then you may check whether your ISP uses CGNAT.

If that is the case, your port forwarding will not take effect. Contact your ISP for an opt-out whenever possible.

An alternative is to host a LAN server using a so that your friends can join too!

Hosting a LAN Server

A local server is a game server that appears on the local server browser and is accessible within a LAN network.

This option is most suitable for hosting a game party for your family within your home network, or with your friends across the internet through .

  1. Log in to the game.

  2. Click MULTIPLAY.

  3. Click LOCAL.

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

  5. You will be able to see your server's local IP address on the loading screen while the server is launching (i.e., on loading / briefing screen).

Hosting a Private WAN Server

A private WAN server is a game server that does not appear on the online server browser but is still accessible over the internet if you know its public IP address.

This option is most suitable for hosting a game party with your friends without the need of using any virtual LAN solutions.

  1. Forward the following ports (i.e., Port Forwarding / NAT Virtual Server) to your server's local IP address in your home router's control panel: 29900 - 29900 UDP or Both 17567 - 17567 Both​

  2. Go to https://www.whatismyip.com/ to view your public IP address. Tell the IP address to your friends.

  3. Log in to the game.

  4. Click MULTIPLAY.

  5. Click LOCAL.

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

​LAN players can still join your server using your local IP address (such as your family members) while WAN players (such as your friends in another area) can join your server using your public IP address. This only applies when you have properly set up port forwarding.​​

Hosting a Public WAN Server

​A public server is a game server that appears on the online server browser and is accessible through the Internet.

Since the server is visible on the browser, you will be on the Internet to join your game.

  1. Forward the following ports (i.e. port forwarding) to your server's local IP address in your wireless router control panel: 29900 - 29900 UDP or Both 17567 - 17567 Both​

  2. Use file explorer to navigate to C:\Users\xxxxx\Documents\Battlefield 2142\Profiles.

  3. Open Global.con using a text editor.

  4. Look for the line that begins with GlobalSettings.setDefaultUser. If its value is 0001, open the folder 0001.

  5. In the folder, open ServerSettings.con using a text editor.

  6. Look for the line GameServerSettings.setInternet 0. . Save the file.

  7. Go to https://www.whatismyip.com/ to view your public IP address. Tell the IP address to your friends.

  8. Log in to the game.

  9. Click MULTIPLAY.

  10. Click LOCAL.

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

  12. Now your server should show up in the online server browser.

To check whether your setup is correct, you may press the Esc button in-game and go to the server browser. Your server should show up there.

If you haven't set up port forwarding properly, you will still see your server on the list, but no one else will be able to join your server (i.e., cannot connect error).

​LAN players can still join your server using your local IP address while WAN players can join your server using your public IP address.

Last updated