You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: features/multiple-game-servers.md
+23-24
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@ description: Hosting multiple game servers on the same host
6
6
7
7
Depending upon the game server you are running it is possible to run multiple game servers on the same server host.
8
8
9
-
**There are two recommended ways to run multiple game servers on one physical server**.
9
+
**There are two recommended ways to run multiple game servers on one physical server**.\
10
10
Depending upon the circumstances you may choose a particular method or mixture of both.
11
11
12
-
It is best to make a proper plan for running multiple game servers at the earliest stage of your deployment.
12
+
It is best to make a proper plan for running multiple game servers at the earliest stage of your deployment.\
13
13
Make sure that you examined this page carefully and understood all of its content before starting.
14
14
15
15
## Prerequisites
@@ -20,13 +20,13 @@ You need some definitions to make this guide clear.
20
20
21
21
***Installation:** An _installation_ refers to the base directory of a game server. This is where the files required to run a game server is stored.
22
22
23
-
```text
23
+
```
24
24
/home/gameserver/serverfiles
25
25
```
26
26
27
27
***Instance:** Each individual game server is referred too as an _instance._ There might be multiple instances running per installation. An instance is started by running the `./gameserver` script
28
28
29
-
```text
29
+
```
30
30
/home/gameserver/gameserver
31
31
/home/gameserver/gameserver-2
32
32
```
@@ -39,7 +39,7 @@ You should be familiar with how [LinuxGSM Configs](../configuration/linuxgsm-con
39
39
40
40
#### Understand ports
41
41
42
-
You need to understand how ports work in order to avoid port overlapping, otherwise your new instances won't start. Useful resource: [Ports](../configuration/ports.md).
42
+
You need to understand how ports work in order to avoid port overlapping, otherwise your new instances won't start. Useful resource: [Ports](../networking/ports.md).
43
43
44
44
## Single Instance per Installation
45
45
@@ -70,18 +70,18 @@ This consists of creating a new user for each game server, repeat the install pr
70
70
71
71
The installs are separated and isolated from each other in each users _home directory_.
72
72
73
-
| Game Server | User | LinuxGSM Script location |
74
-
|:--- |:--- |:--- |
75
-
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver |
76
-
| Garry’s Mod | gmodserver-slender | /home/gmodserver-slender/gmodserver |
77
-
| Counter-Strike: Global Offensive | csgoserver | /home/csgoserver/csgoserver |
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver|
76
+
| Garry’s Mod | gmodserver-slender | /home/gmodserver-slender/gmodserver |
77
+
| Counter-Strike: Global Offensive | csgoserver | /home/csgoserver/csgoserver|
78
78
| Counter-Strike: Global Offensive | csgoserver-zombies | /home/csgoserver-zombies/csgoserver |
79
79
80
80
### How to Install
81
81
82
-
1. Create a new user with a home directory.
82
+
1. Create a new user with a home directory. 
83
83
2. Repeat the standard installation process using this new user.
84
-
3. Change the instance config adjusting ports numbers from the default
84
+
3. Change the instance config adjusting ports numbers from the default 
85
85
86
86
## Single Installation with Multiple Instances
87
87
@@ -113,37 +113,37 @@ Most but not all game servers work with this method
113
113
114
114
### How it works
115
115
116
-
You have one game server installation, but you have multiple instances start in the same installation using different config files.
116
+
You have one game server installation, but you have multiple instances start in the same installation using different config files. 
117
117
118
-
Every time a new instance is created, new default config files are created. This allows each instance to have different hostname, ports etc. The config files are by default the same name as the instance script. For example, if the script is `./gameserver-2` the config is `gameserver-2.cfg`. You can see the location of config files in `./gameserver-2 details`\(replace "instance" with your actual instance name\).
118
+
Every time a new instance is created, new default config files are created. This allows each instance to have different hostname, ports etc. The config files are by default the same name as the instance script. For example, if the script is `./gameserver-2` the config is `gameserver-2.cfg`. You can see the location of config files in `./gameserver-2 details` (replace "instance" with your actual instance name).
119
119
120
120
Each instance is managed using its own script which gives the config file names. These can be renamed how you like, however, the default will simply have an incremental number. Some admins may choose to name them after the server port, the map or the gamemode instead.
121
121
122
122
### Examples
123
123
124
-
| Game | User | LinuxGSM Script location | notes |
125
-
|:--- |:--- |:--- |:--- |
126
-
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver | 1.2.3.4:27015 |
127
-
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver-1 | 1.2.3.4:27018 |
128
-
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver-2 | 1.2.3.4:27021 |
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver | 1.2.3.4:27015|
127
+
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver-1 | 1.2.3.4:27018|
128
+
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver-2 | 1.2.3.4:27021|
129
129
| Counter-Strike: Global Offensive | csgoserver | /home/csgoserver/csgoserver-zombies-27024 | 1.2.3.4:27024 Zombie Mod |
130
130
| Counter-Strike: Global Offensive | csgoserver | /home/csgoserver/csgoserver-zombies-27027 | 1.2.3.4:27027 Zombie Mod |
131
131
132
132
In these examples, you can see the scripts are located in the same installation but have different names. Each instance has had its port altered in the server config to prevent port clashes.
133
133
134
134
### How to install
135
135
136
-
`linuxgsm.sh` allows you to generate as many instances as you want by running .
136
+
`linuxgsm.sh` allows you to generate as many instances as you want by running . 
137
137
138
-
```text
138
+
```
139
139
./linuxgsm.sh install
140
140
OR
141
141
./linuxgsm.sh gameserver
142
142
```
143
143
144
144
It will generate a new LinuxGSM script using an incremental number.
145
145
146
-
```text
146
+
```
147
147
./gameserver-2
148
148
```
149
149
@@ -153,9 +153,8 @@ On the first run of `./gameserver-2` a new default LinuxGSM and game config `gam
153
153
154
154
### Forgetting to change ports and/or IP
155
155
156
-
If you run multiple game servers you will need to alter ports. Ensure you are aware of how to manage [ports](../configuration/ports.md).
156
+
If you run multiple game servers you will need to alter ports. Ensure you are aware of how to manage [ports](../networking/ports.md).
157
157
158
158
### Installing game servers with the same script name under the same user
159
159
160
160
Installing multiple installations using the same user does work. However you must use unique script names i.e. `./gameserver`. This is because tmux requires unique session name to start a session. Tmux will fail to start if another server is using the same session name. LinuxGSM uses the script name as the tmux session name.
Copy file name to clipboardexpand all lines: networking/ip-address.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This guide is not designed to be an in-depth guide to networking, instead focusi
8
8
9
9
## Internet Server vs. Local Server
10
10
11
-
Your game server can be hosted online using a server provider such as Linode or on a [local network](local-home-server.md) at your house for either local-only LAN parties or allowing online players in through your router. 
11
+
Your game server can be hosted online using a server provider such as Linode or on a [local network](../configuration/local-home-server.md) at your house for either local-only LAN parties or allowing online players in through your router. 
12
12
13
13
## Network Interfaces
14
14
@@ -72,7 +72,7 @@ By default, LinuxGSM will use the 0.0.0.0 meta-address. This behavior will allow
72
72
73
73
Internet IP: LinuxGSM will try to gather the server internet IP address to be shown in [details](../commands/details.md).
74
74
75
-
Specific IP: If a specific IP address needs to be set it can be done using the `ip` setting in the [LinuxGSM ](linuxgsm-config.md)or [game server ](game-server-config.md)config files. 
75
+
Specific IP: If a specific IP address needs to be set it can be done using the `ip` setting in the [LinuxGSM ](../configuration/linuxgsm-config.md)or [game server ](../configuration/game-server-config.md)config files. 
76
76
77
77
Display IP: If you want to change the IP address displayed in alerts you can use the [displayip](../alerts/#display-ip).
Copy file name to clipboardexpand all lines: networking/ports.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Query port: Used by software to gather information from the server such as serve
20
20
Rcon port: Some game servers have remote console port allowing remote administration of a game server. \
21
21
Web port: used for game servers that have web interface.
22
22
23
-
Depending upon which game server is being used, you can set game server ports within your [start parameters](start-parameters.md) or [game server](game-server-config.md) config file.
23
+
Depending upon which game server is being used, you can set game server ports within your [start parameters](../configuration/start-parameters.md) or [game server](../configuration/game-server-config.md) config file.
24
24
25
25
LinuxGSM allows you to see the ports your game server is using with the `./gameserver details` command.
26
26
@@ -37,7 +37,7 @@ App 28082 tcp 1
37
37
38
38
## Changing Default Ports
39
39
40
-
Default ports are set in either the [start parameters](start-parameters.md) or [game config](game-server-config.md). 
40
+
Default ports are set in either the [start parameters](../configuration/start-parameters.md) or [game config](../configuration/game-server-config.md). 
41
41
42
42
You can use `./gameserver details` to find out where to edit port settings
Copy file name to clipboardexpand all lines: steamcmd/steam-master-server.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,6 @@ steammaster="true"
31
31
There are instances when a game server might not appear in the server list due to several common reasons:
32
32
33
33
* Server Loading Time: Please be patient while the server loads, as it may take some time before it becomes visible. Depending on the game server type, certain servers require additional time for tasks like map seeding or loading mods.
34
-
* Blocked or Misconfigured [Ports](../configuration/ports.md): Ensure that the ports are correctly set up and not blocked. To verify the connection, try connecting directly to the server.
34
+
* Blocked or Misconfigured [Ports](../networking/ports.md): Ensure that the ports are correctly set up and not blocked. To verify the connection, try connecting directly to the server.
35
35
* Filtering in Server List: Check that you have not applied any filters in the server browser. Filters like specific maps, "Empty Server," or "Password Protected" should be unchecked to display all available servers.
36
36
* Server Browser Limitations: It's possible that the server browser functionality of the game might not list all available game servers. In such cases, not all servers may be visible in the server list.
Copy file name to clipboardexpand all lines: support/faq.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -237,7 +237,7 @@ This can have numerous reasons. Here are some ways to diagnose this issue:
237
237
* Are you behind [Firewalls](../linux/firewalls.md)? Double-check your rules, and try to disable it for testing
238
238
* Do you have multiple interfaces? Set the right IP within your "gameserver" script or the game config file
239
239
* Is it a home server? If you're behind a router, make sure you're listening to your local IP, then redirect appropriate ports to this local IP within your router settings.
240
-
* Are the ports you're using free? See [Ports](../configuration/ports.md)
240
+
* Are the ports you're using free? See [Ports](../networking/ports.md)
241
241
* Did you wait long enough? Sometimes it's just a matter of time until your server shows up on the list
0 commit comments