Jump to content

port config


nashash

Recommended Posts

I have pasted the doc in here for you.

Multiplayer Configuration Readme

1. Table of Contents

Multiplayer Configuration Readme. 1

1. Table of Contents. 1

2. Basic concepts. 2

3. Configuring your networking hardware. 3

3.1. Setting up your router 3

4. Configuring the firewall / antiviral software. 6

5. Configuring towsetup. 7

5.1. Host IP address. 7

5.2. Server ports. 7

5.2.1 Public port 7

5.2.2 Private port 7

5.3. Client port 7

5.4. Connection speed. 7

5.4.1 “Speed” option (server and client) 8

5.4.2 “Smooth Movement” option. 8

5.4.3 Server frame rate. 8

5.5. Proxy support 8

6. F.A.Q. 10

6.1. How can I find out my IP address?. 10

6.2. How can I join a game hosted on the internet?. 10

6.3. Can I host a game so that it is NOT listed in the Internet Game Browser window?. 10

6.4. Can LAN and Internet clients play the same game?. 10

6.5. What is Smooth Movement server option for?. 10

6.6. I connect to server normally, but game never loads MP mission, what do I do?. 10

6.7. Can I change my multiplayer settings in “towsetup” while the game is currently running?. 10

6.8. Does ToW support proxy?. 11

2. Basic concepts

“Theater Of War” supports LAN and online multiplayer games across the internet. There can be a total of up to 8 players.

The multiplayer game uses the client/server principle. One of the players makes a game server. The other players are referred to as clients. They can connect to the game server after it is created.

The UDP protocol is used for the connection and in the game.

Direct Internet access is required to host a game server over the internet – ie, your computer must have an external IP address and be reachable from the Internet. Client computers can be behind a proxy (see Proxy info below).

Network connection settings for both the server and client are listed in the file “users\mp.ini”. The file can be edited manually (for instance, in Notepad).

Also, the file “users\mp.ini” can be adjusted with the help of the “Theater of War” setup utility, “towsetup”. All multiplayer settings are located in its “Multiplayer” tab.

This document will detail the various multiplayer settings affected with the towsetup.exe configuration program.

3. Configuring your networking hardware

This section is primarily targeted for the users that have additional networking hardware at home such as routers and firewalls and want to host a Theatre of War game.

3.1. Setting up your router

If you want to play as a client you can omit this section completely.

Your ToW game server must be accessible from outside of your router (be online) for other clients to connect. However, usually your router or firewall protects your home computer(s), blocking all ports except some “standard” ones – HTTP, FTP, and a handful of others. Thus, you have to open some ports on your router for ToW and “bind” them to your ToW game server.

To do this, you have to enable “port forwarding” on your router for the necessary UDP ports that the game uses. You will need to access your router control panel to make these changes (check your router documentation to find out how to do that for you specific equipment/software).

Below is an example of the Port Forwarding/Virtual Server panel for a Belkin Router.

Your specific settings may be different than what is listed above, but you should see settings like “IP Address”, “Private Port”, ”Public Port”, “Protocol Type” or similar.

To add a new entry for Theatre of War (using the default Multiplayer Settings), you would do the following:

- Create or Add a new entry, and name it something like “ToW” or “Theatre of War”

- For ports (may be listed as TCP Ports, UDP Ports or Inbound Ports) add the range “22345-23344” to the list (in the above pic, that range is 2348-2351, but you should use 22345-23344)

- Select “UDP” as the Protocol “Type”

- For the IP Address, it should be the IP address for the computer that ToW is running on.

- Make sure the new entry you just added is “enabled”

For other questions, refer to your router / firewall documentation.

4. Configuring the firewall / antiviral software

If you don’t have any firewall and antiviral software you can skip this section.

Usually the firewall / antiviral software is configured in such a way as to block everything incoming to your computer except for some allowed applications.

Therefore if you are behind a firewall or use antiviral software, you have to open it for the ToW application. You may have to open just a client port to play as client, or several ports to play as server. For a firewall you will need to “allow” both incoming and outgoing access to these same ports.

Refer to your firewall / antiviral software documentation on how to open an application and ports.

5. Configuring towsetup

5.1. Host IP address

Both server and client use this field. It indicates the IP of this computer.

For the most cases, it is sufficient to set the value of IP to “localhost”.

However, there are some cases when you may need to specify the IP address explicitly:

- You experience problems creating game server or client.

- Clients cannot connect to your server.

- The list of IP addresses shows more than one IP address.

In any case, you should pick the right IP address from the IP list in towsetup. Otherwise the game server or client won’t start at all. Also, you may have to check all your available IP addresses.

5.2. Server ports

ToW game server uses 2 ports, public and private. Both must be accessible from the Internet when hosting an online game.

Configure server ports in the “Server” section of the towsetup Multiplayer tab.

5.2.1 Public port

All clients trying to connect to the ToW game server over Internet must know this port. Default is 22345 and should not be changed unless necessary.

5.2.2 Private port

It must be different than the public port. The Server Host for the game uses this port.

In the towsetup, you have 2 choices: directly specify this private port, or set a range of ports to pick up a private port from (default).

When using the port range, make sure the public port does not belong within the same range.

By default this is set to be a range of ports from 22400-22500 and should not be changed unless necessary.

5.3. Client port

ToW game client uses one port. This port must be accessible from the Internet when playing an online game.

Configure client port in the “Server” section of the towsetup Multiplayer tab.

By default this is set to be 23344 and should not be changed unless necessary.

5.4. Connection speed

This section covers the recommendations for connection speed.

For the multiplayer game to run smoothly, it is very important that the server has the good connection with big upload capability and good frame rate. These requirements are much more important for the server than for the clients.

It is not recommended to play ToW over the regular phone line modem.

5.4.1 “Speed” option (server and client)

The table below gives the approximate match between the speed of your available Internet connection and the option “Speed” in towsetup.

Connection speed, kbit/sec

ToW Server Speed

ToW Client Speed

Comments

10.000

2.000.000 (LAN)

2.000.000 (LAN)

Best setting for optimal LAN connections.

1.000

1.000.000 (LAN) – 100.000 (Cable)

1.000.000 (LAN) – 100.000 (Cable)

Best settings for high speed Cable Modems and LAN connections.

1.000

25.000 (Cable)

25.000 (Cable)

Best setting for Phone and ADSL connections.

Note: You can enter your own values into the “Speed” fields manually.

5.4.2 “Smooth Movement” option

The server option Smooth Movement is greatly affected by the available connection channel speed. When it is on, it requires big and stable upload channel capability for the server AND the same for all the clients (though that requirement is less strict for the clients). When off, players with lower connection speeds are still able to play, but the lags may be bigger. So, use the following rule-of-thumb when tweaking this option:

- If the server and all the clients have extremely fast network connections, the server can turn the “Smooth Movement” option on.

- If the server or any clients in the game have bad or insufficient connection speeds, this option is better when turned off.

- If the clients experience lag and bad response times (exceeding several seconds per unit selection), turn this option off.

Still, you can always try it on your own.

Note: We really suggest you only enable this option if you are playing on a LAN. For most internet games, even those where the host and client all have high speed cable modems (or better), your connection speed may still not be sufficient to get the most out of this setting.

5.4.3 Server frame rate

It is recommended that the ToW server maintain a good frame rate while playing. Otherwise, clients will experience occasional lag and/or may even get disconnected. To achieve this, you can lower your graphics settings on the server.

5.5. Proxy support

The ToW client can be configured to play behind the proxy server. ToW uses SOCKS5 protocol. Proxy server must support this protocol in order for the ToW to connect and play.

The section “Proxy server (SOCKS5)” in towsetup configures the proxy connection. If your internet/LAN connection goes through the proxy, indicate this proxy’s IP and port and, optionally, specify login name and password.

After that, start the ToW in a regular way and join the game you want.

While it is possible to setup the ToW server behind a proxy, this usually requires the special access permission to the proxy server to configure it, something that regular internet/LAN users don’t have. Configuring the proxy server goes outside the scope of this document. Refer to your proxy server documentation and/or ask your Internet provider how to configure your proxy.

6. F.A.Q.

6.1. How can I find out my IP address?

There is a number of websites, which will show you your external IP address by simply going to them with your web browser. Here is a small selection of sites to try.

http://whatsmyipaddress.com/

http://myipaddress.com

http://www.findmyipaddress.com/

6.2. How can I join a game hosted on the internet?

There are now two ways to join an internet hosted game, by directly typing in the hosted games IP address and port (you would need to get the IP address and port number from the host ahead of time, either by email, IM, phone or some other form of communication) or by using the new Internet Game Browser function added with the latest game version (1.10.0.81). This in-game tool will show all public Theatre of War games currently being hosted across the internet.

To join a public internet hosted game, click on the MULTIPLAYER button from the main game menu. Then select the button called INTERNET. After a moment all of the currently hosted internet games will be listed and you can select the one you wish to join by clicking it one time to highlight it, and then click on the JOIN button.

If for some reason the Internet Game Browser does not list the hosted game, if the list server is down or if the Host created the game using the DIRECT-IP option (a private game, see next entry for details), you can still manually type in the IP address and port number to join a hosted game. To manually enter an IP address, select the MULTIPLAYER button from the main game menu and then select the DIRECT-IP button. In the connection window, type the IP address and port number like this: 262.34.0.54:22345

6.3. Can I host a game so that it is NOT listed in the Internet Game Browser window?

Yes, you can. To host a game privately and have it NOT appear on the list of currently hosted games simply select the MULTIPLAYER button from the main game menu and then select the DIRECT-IP button. From here click the CREATE GAME button. Now, although people can connect to the hosted game if they know the IP address and port, the game will not be listed along with other publicly hosted games from within the Internet Game Browser window.

6.4. Can LAN and Internet clients play the same game?

Yes, they can. Both the local clients (those your LAN) and remote clients (those connecting over Internet) can connect to the ToW game server and play together.

However, those client categories should connect differently as follows:

- Local clients connect to the INTERNAL server’s IP address and INTERNAL port, or go through LAN games list.

- Remote clients connect to the EXTERNAL server’s IP address and EXTERNAL port

6.5. What is Smooth Movement server option for?

This option toggles different types of unit movement on the client computers but is only recommended for LAN games.

6.6. I connect to server normally, but game never loads MP mission, what do I do?

If the MP mission doesn’t finish loading within 10 minutes, make sure that both the server and client have parameter CurrentPacketSize in section Host in Users\mp.ini file set to 512. Larger packet sizes may cause problems, because in networks of some ISPs this may result in high packet loss percentage (and loading will stop).

6.1. Can I change my multiplayer settings in “towsetup” while the game is currently running?

Yes, you can. In fact, we recommend you to do so, because that saves you the subsequent mission loading times, both for the server and for the client, especially if you play the same mission over and over.

Do it as follows:

- Leave the current mission you’re playing. If you are the Host, this will disconnect all connected clients.

- Go to the front end game menu. It is the menu with the “Multiplayer” button in it.

- Launch towsetup.exe configuration program (located in the game directory, or via the Start Menu under Program Files>Battlefront>Theatre of War>Configure Theatre of War). You will have to Alt-tab (task switch) back to the desktop in order to launch this program while the game is running.

- Change any values you want in the multiplayer tab.

- Press “OK” to save settings. You can exit towsetup.exe as well.

- Switch back to Theatre of War.

- Host or Join a new game – all of multiplayer settings you just adjusted are now saved.

-

6.2. Does ToW support proxy?

Yes, it does. There are some limitations however:

- proxy server must support SOCKS5 protocol.

- proxy support is intended primarily for clients.

- to create a game server behind the proxy, you must own that proxy, or ask your Internet provider to assist you.

Link to comment
Share on other sites

×
×
  • Create New...