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! 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.
  • 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.
​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

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.
You should be knowing how to launch and log in to the game using the launcher by now.
  1. 1.
    Log in to the game.
  2. 2.
    Click MULTIPLAY.
  3. 3.
    Click LOCAL.
  4. 4.
    In the CREATE tab, configure the server settings and click START SERVER.
  5. 5.
    You will be able to see your server's local IP address on the loading screen once the server is launched.

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.
You should be knowing how to launch and log in to the game using the launcher by now.
  1. 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. 2.
    Go to https://www.whatismyip.com/ to view your public IP address. Tell the IP address to your friends.
  3. 3.
    Log in to the game.
  4. 4.
    Click MULTIPLAY.
  5. 5.
    Click LOCAL.
  6. 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 works if you have properly port forwarded the required ports.​​

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. You will be playing with random people around the world.
You should be knowing how to launch and log in to the game using the launcher by now.
  1. 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. 2.
    Use file explorer to navigate to C:\Users\xxxxx\Documents\Battlefield 2142\Profiles.
  3. 3.
    Open Global.con using a text editor.
  4. 4.
    Look for the line that begins with GlobalSettings.setDefaultUser. If its value is 0001, open the folder 0001.
  5. 5.
    In the folder, open ServerSettings.con using a text editor.
  6. 6.
    Look for the line GameServerSettings.setInternet 0. Change 0 to 1. Save the file. [See Step 6 Info]
  7. 7.
    Go to https://www.whatismyip.com/ to view your public IP address. Tell the IP address to your friends.
  8. 8.
    Log in to the game.
  9. 9.
    Click MULTIPLAY.
  10. 10.
    Click LOCAL.
  11. 11.
    In the CREATE tab, configure the server settings and click START SERVER.
  12. 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.
Your server name will be highlighted in red colour in the browser if you haven't done proper port forwarding while having the internet option on. If that's the case, you can see still see your server on the list, but other players won't be able to join.
Step 6: This tells OpenSpy to show your server on the server browser. 1 for Internet, 0 for LAN.
​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 works if you have properly port forwarded the required ports.​​