Raised This Month: $51 Target: $400
 12% 

Server keeps changing port


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-24-2014 , 16:37   Server keeps changing port
Reply With Quote #1

I currently have a TF2 server at 192.223.26.33:27015
I am trying to start another server at 192.223.26.33:27016

Everything works fine for several hours I believe, then the first servers port seems to suddenly change to something like 27017.

Is this related to me trying to use the same IP? Is there a specific log file I could check to see when this happens? I am assuming it IS related because the port does not change if I keep the second server offline, however my host said using the same IP with a different port is completely possible.

Ubuntu 14.04
__________________
Phaiz is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-24-2014 , 16:43   Re: Server keeps changing port
Reply With Quote #2

Ports randomly jumping.

..and https://forums.alliedmods.net/showpo...45&postcount=6
__________________
Do not Private Message @me
Bacardi is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-24-2014 , 16:55   Re: Server keeps changing port
Reply With Quote #3

Thanks! I will give that a shot.
__________________
Phaiz is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-26-2014 , 01:02   Re: Server keeps changing port
Reply With Quote #4

Ok that topic helped me sort out the issues stated in the first post, however now there is another one.

My two servers on 1.2.3.4:27015 and :27025 are working perfectly, their ports aren't changing etc etc.
However another server with a different IP on the same box is changing its port from 27015 to 27016 after a random number of hours online. I will post the command lines below.

Server 1
Code:
-ip 192.223.26.33 -port 27015 -nohltv +clientport 27005
Server 2
Code:
-ip 192.223.26.33 -port 27025 -nohltv +clientport 27006
Server 3: the one that keeps changing to 27016
Code:
-ip 74.91.119.95 -port 27015 -nohltv +clientport 27005
__________________
Phaiz is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-26-2014 , 01:03   Re: Server keeps changing port
Reply With Quote #5

Hopefully it is something simple since I am still new to all of this fun stuff.
__________________
Phaiz is offline
veli
Senior Member
Join Date: Apr 2012
Location: Netherlands
Old 12-26-2014 , 08:16   Re: Server keeps changing port
Reply With Quote #6

Quote:
Originally Posted by Phaiz View Post
Hopefully it is something simple since I am still new to all of this fun stuff.
I had same issue with my csgo server. Server crash and start with a difference port than 27015.

A friend installed for me this management system and it is resolved. Each time server crash start with same port. (27015)

Dont know which server you run but if csgo try this http://danielgibbs.co.uk/lgsm/csgoserver/
veli is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-26-2014 , 09:13   Re: Server keeps changing port
Reply With Quote #7

I don't know why it would be crashing, but this only started after I started up a 2nd server on one IP and different ports.
__________________
Phaiz is offline
veli
Senior Member
Join Date: Apr 2012
Location: Netherlands
Old 12-26-2014 , 09:21   Re: Server keeps changing port
Reply With Quote #8

Quote:
Originally Posted by Phaiz View Post
I don't know why it would be crashing, but this only started after I started up a 2nd server on one IP and different ports.
I could not find out too why my server was crashing. No log, nothing.

But this is my command start line. Maybe you can use some commands in this.

./srcds_linux -game csgo -usercon -strictportbind -ip xxxxxxxxxxxxxx -port 27015 +clientport 27005 +tv_port 27020 -tickrate 32 +map zm_chicken_factory +servercfgfile csgo-server1.cfg -maxplayers_override 52 +mapgroup mg_bomb +game_mode 0 +game_type 0 -usercon -console
veli is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-26-2014 , 13:42   Re: Server keeps changing port
Reply With Quote #9

Incidentally, -strictportbind does work on TF2 and will prevent it from jumping ports... by preventing the server from starting if port 27015 is already bound on that IP.

To be honest, it's been a while since I've hosted multiple servers using different IPs on the same box, so I don't even remember any of the issues I ran into when doing that.

You may also want to use -sport to move the Steam port for each server around.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 12-26-2014 at 13:43.
Powerlord is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-26-2014 , 13:47   Re: Server keeps changing port
Reply With Quote #10

Quote:
Originally Posted by Powerlord View Post
Incidentally, -strictportbind does work on TF2 and will prevent it from jumping ports... by preventing the server from starting if port 27015 is already bound on that IP.

To be honest, it's been a while since I've hosted multiple servers using different IPs on the same box, so I don't even remember any of the issues I ran into when doing that.

You may also want to use -sport to move the Steam port for each server around.
I'll give -strictportbind a shot and see if it prevents the issue. If this were a new server I would try just putting it to something like 27035 but I really don't want to lose it on favorites lists.
__________________
Phaiz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode