Twin Feb 23, 2015 @ 3:17pm
How do I run two servers with my internet?
At the moment I am running a Source Dedicated server for GMOD, and for my community I'd like to put up another one.

First off my internet service provider is Verizon.

The first server's information is:
IPv4 Adress: 192.168.1.2
IPv4 Forwarded to Server Ports: 27015

Public IP: 71.164.163.134
Public IP Forwarded to Server Ports: 27015

The client port for both of these is 27005

The protocol for the port forwarding is UDP and UDP only.

C:\scrds\srcds.exe +port 27015 +clientport 27015 +ip 192.168.1.2 +host_workshop_collection <private> -authkey <secret> +map cs_office

And the first one works completely fine, and I see that the client port is 27015, but it has worked and has had people on it working completely fine.
----------------------------------------------------------------------------

The second server's information I am not sure what to do for this.

The IPv4 adress for the first server is the only Ethernet device I have, the rest are Wireless and run on the same IP adress which is 71.164.163.134. I've tried different IPv4 adresses on Wireless Broadband connection.

I have tried using the same adresses as the first one up there for the ip adresses, I have forwarded them to different ports, in the range of 27016-27020 and none of them have worked when I launch the Source Dedicated Server.

I've tried these with server one going:
IPv4 192.168.1.2, 192.168.1.5
Public IP: 71.164.163.134
Both IP's forwarded to Server Ports:
27016-27020
Protocol: UDP Only

Command Line 1:
C:\scrds2\srcds.exe +port <Ports Above> +clientport 27005 +ip <IPv4s Above> +server.cfg +gamemode darkrp

Command Line 2:
C:\scrds2\srcds.exe +server.cfg +gamemode darkrp +map rp_downtown_v2 +ip 192.168.1.2 +port 27017

Each time it either can't be made because the internet protocols are already being used, or the Source Dedicated Server fails to launch.


These are the adresses partially available in my network to use:
192.168.1.2 (In use by Server One)
192.168.1.5 (Not in use, active, running on 71.164.163.134)

Default Gateway Port Forwarding Error
The Destination Ports <#> service conflict with an existing port forwarding rule offering Destination Ports <#> service.

SRCDS shows up with information
Game: Garry's Mod , Server Name: <>, Map: rp_downtown_v2, Network: Internet, Maxplayers: 32, UDP Port <27016-27020> and the Rcon pass.
Then when I hit Start Server it fails to launch and crashes.

Anything helps!






Last edited by Twin; Feb 23, 2015 @ 3:39pm
< >
Showing 1-5 of 5 comments
laurent1683 Feb 23, 2015 @ 3:51pm 
I do not know, but a good idea on the net looking for how to install server SEVERAL me I found her in French you may be able to translate and understand http://www.responsive-mind.fr/plusieurs-serveurs-et -load-balancing /
  This address is in French so the translation Many servers with load balancing, I'm sure you will find the site on the net that will explain to you in detail how to do better on steam!
Sepp Feb 23, 2015 @ 10:58pm 
I never used clientport for starting a server. I'm running several srcds servers on one box and the only difference is the -port switch in the command line. So I suggest you start your first server with -port 27015 (or simply no port command at all as 27015 is default port). And for the 2nd one use -port 27016. Also remove the +ip command.

Also not sure what you tried to accomplish with your 2nd ip address 192.168.1.5?
You either use different port on the same ip address. Or give the box a secondary ip adress and then you can use the same port on both ip addresses. Only then you would need to use the +ip switch.I recommend to use only one ip though and use different ports. Depending on what you will use make sure your portforwarding is matching your setup.

Wouldn't you also need to put in -console to see the server output at all?
Or does GMOD handle this different then other source servers?

This is how I would try it:
C:\scrds\srcds.exe -console -game garrysmod +map gm_construct +exec server.cfg
C:\scrds2\srcds.exe -console -game garrysmod -port 27016 +map gm_construct +exec server.cfg
If this works fine then you can try to modify it with your darkrp gamemode.
Crab May 25, 2023 @ 6:23am 
I know this is old, but the only way I've done this in the past, was by implementing a reverse proxy to siphon the traffic to different nodes depending on hostname.
Blaquicat May 26, 2023 @ 11:29am 
Originally posted by Crab:
I know this is old, but the only way I've done this in the past, was by implementing a reverse proxy to siphon the traffic to different nodes depending on hostname.
Indeed very old thread, for reference purposes (google):

Nowadays, for security reasons, sometimes you need to call isp if you want to host things, and also, make sure your isp arent under any CGNAT (which shares public ip with multiple clients)

Also, you dont need client commands on the server, they dont do anything, same as server commands on clients(except listen servers).
ex:
Command Line 1:
C:\scrds2\srcds.exe ...... +clientport 27005 .....
This arg basically says "when connecting to a server, use the port 27005 to connect"..
Which does not make sense at all.

Same thing goes to cl_ commands, those are for clients, sv_ commands for servers.
Also, srcds don't work on port range.. must specify a single port.

If you dont know how to make a rule for the windows firewall, then just disable it, windows firewall on most cases its just annoying and useless.

Sorry my bad english.
Last edited by Blaquicat; May 26, 2023 @ 11:30am
[N]ebsun May 26, 2023 @ 9:46pm 
Just use different server port - that's all that is required.

server 1: 192.168.1.6 hosting the server on port 27015
server 2: 192.168.1.7 hosting the server on port 27115 ( I just separate servers by 100)

Setup port forward for port 27015 to go to IP 192.168.1.6 and port 27115 to go to 192.168.1.7

on the startup line use the command switches to specify the port like
-ip 0.0.0.0 -port 27015
-ip 0.0.0.0 -port 27115

client port doesn't need to be changed - it is just a hint for the client port that they should use, but the client can choose to use a different port if it desires.. eg: if 5 people are connecting from the same IP, they will each use a different client port.

When someone wants to join, they just can specify both the IP and the port and will join the server that is running on the port they specify
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Feb 23, 2015 @ 3:17pm
Posts: 5