10. Hosting Servers

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

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

This is simply the easiest way ever to host a server that fits most of your needs. That's why we named it Quick Setup! It's easy to do and easy to understand!

  • Port forwarding is only required for WAN servers. It's optional for LAN servers.

  • Players do not need to do port forwarding. Only servers need to do that.​

  • The 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 one who hosts the server has to be playing on the server as well! In other words, he or she is playing while hosting. If he or she closes the game, the server will be off.

​That's why for a production server, it's best to host it with a server client, i.e. hosting a dedicated server. But this quick setup method should already be sufficient if you just want to play with your friends

My port forwarding is not working!?

If you believe that you have properly configured everything but port forwarding still doesn't work, then you may check whether your ISP uses CGNAT.

If that's really the case, your port forwarding will not take effect. Contact your ISP for an opt-out if possible.

Hosting a Local Server [LAN]

A local server is a game server that can be accessed within a LAN network. The server will appear on the local server browser once it's up.

This option is suitable for hosting a game within your house, i.e. playing with your family.

  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 Server [WAN]

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

This option is very suitable for hosting a game with your friends if you don't want to be disturbed.

  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 Server [WAN]

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

That's why it's called a public server because you're allowing random people around the world 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. Change 0 to 1. Save the file. [See Step 6 Info]

  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.

Step 6: This tells OpenSpy to show your server on the server browser. 1 for Internet, 0 for LAN.

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 (such as your family members) while WAN players (such as your friends in another area) can join your server using your public IP address. Again, this only applies when you have properly set up port forwarding.​​

Last updated