Raised This Month: $ Target: $400
 0% 

Unknown command "port"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 08-27-2012 , 02:45   Unknown command "port"
Reply With Quote #1

How to set port of the server?

Both are unknown command...
PHP Code:
+port 27016 
and
PHP Code:
-port 27016 
__________________
Of all the things I lost, I miss my brain the most.
Caldeum is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-27-2012 , 02:54   Re: Unknown command "port"
Reply With Quote #2

5 Source Dedicated Server

-port is server launch parameter.
Code:
srcds.exe -console -game hl2mp -port 27015 +map dm_lockdown
When you want add server cvars in launch parameter, use plus (+)
Code:
srcds.exe -console -game hl2mp -port 27015 +map dm_lockdown +sv_gravity 600 +hostport 27015
*edit
I recomended not use -port prameter or cvar, have always give problem.
__________________
Do not Private Message @me

Last edited by Bacardi; 08-27-2012 at 02:55.
Bacardi is offline
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 08-27-2012 , 03:46   Re: Unknown command "port"
Reply With Quote #3

Yes i use -port 27016 in launch command but i get in console unknown command..

PHP Code:
./srcds_run -game cstrike +ip 0.0.0.0 -port 27016 +maxplayers 16 
WHy ip is with + and port with - ?
what's the difference?
__________________
Of all the things I lost, I miss my brain the most.

Last edited by Caldeum; 08-27-2012 at 03:49.
Caldeum is offline
wildd
SourceMod Donor
Join Date: Jun 2011
Location: Latvia, Riga
Old 08-27-2012 , 04:31   Re: Unknown command "port"
Reply With Quote #4

Why you even try it in console - it's a launch command.

Here is launch parameters from one of my servers, all works fine.

Quote:
-game cstrike +map de_dust2 +maxplayers 28 -port 27018 -ip xx.xxxx.xxx.xxx
I have servers on 27015, 27016, 27017, 27018.

If you have enabled SourceTv on server with port 27015, then look if it isn't taking port 27016. You can type command "status" in server console and see what port SourceTv is using.

I better suggest to use command "tv_port 27045" or somethinh in autoexec.cfg or server.cfg, to force SourceTv port more higher than your other servers.
wildd 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 07:54.


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