Port Change?

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Finessed Gaming
New to forums
New to forums
Posts: 1
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Mar 31, 2015 7:27 am

Port Change?

Post by Finessed Gaming »

My current VPS only has 1 ip, and so it only runs 1 server. How would I change the ports of each server? We are a Garry's mod only server.
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: Port Change?

Post by Spray »

For each server, you're likely using a batch script or something to that effect to launch the server. You would need to editing the starting line in each of these scripts to specify a port.

For instance, a Garry's Mod starting line might look like:

Code: Select all

-game garrysmod +maxplayers 20 -debug -console +r_hunkalloclightmaps 0
You need need to use something like:

Code: Select all

-game garrysmod +maxplayers 20 -debug -console +r_hunkalloclightmaps 0 -port 27030
Post Reply