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

-ip parameter usage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fiction
Member
Join Date: May 2017
Old 09-06-2017 , 18:33   -ip parameter usage
Reply With Quote #1

There seems to be little and conflicting information about what this should actually be set to, if someone could explain the correct usage of this in the command line I'd be very grateful. I've only ever dealt with servers that have a single "external IP" (not sure what the correct term is) and I've always used -ip <external-ip> where external-ip is the address players connect on and it's worked without a problem (at least I haven't noticed one).

Recently I noticed someone saying this is the wrong usage and you should use an internal/local IP (again I don't know the term) or 0.0.0.0, now I've started using 0.0.0.0 and it still seems to work find but I can't see a difference. So other than my initial question of what it does, let's say you have a server that has multiple IPs how do you tell SRCDS which to use for that particular server if -ip is not meant for that?

Thanks.
fiction is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-06-2017 , 19:44   Re: -ip parameter usage
Reply With Quote #2

I think you need use -ip parameter when your server machine have two (or more) network adapter enabled. To prevent srcds to choose wrong adapter.
:/

Usually don't need set -ip parameter at all when have one adapter, srcds will find it automatically.

This is my wild guess and what I quick googled

*edit
Used for internal IP, LAN IP.

!Use +ip

-ip localhost default value, get automatically internal IP
-ip 0.0.0.0 wildcard, listen all addresses

-ip 127.0.0.1 same as -ip loopback


https://superuser.com/questions/9494...=votes#tab-top


*edit
you can also try commands which can kick players out server or timing out.

net_status Shows current network status
net_channels Shows net channel info, connected players etc.

if you change ip value, activate with
net_start
and maybe map change
__________________
Do not Private Message @me

Last edited by Bacardi; 09-07-2017 at 18:40.
Bacardi is offline
fiction
Member
Join Date: May 2017
Old 09-07-2017 , 15:35   Re: -ip parameter usage
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
I think you need use -ip parameter when your server machine have two (or more) network adapter enabled. To prevent srcds to choose wrong adapter.
:/

Usually don't need set -ip parameter at all when have one adapter, srcds will find it automatically.

This is my wild guess and what I quick googled

*edit
Used for internal IP, LAN IP.

-ip localhost default value, get automatically internal IP
-ip 0.0.0.0 wildcard, listen all addresses

-ip 127.0.0.1 same as -ip loopback


https://superuser.com/questions/9494...=votes#tab-top


*edit
you can also try commands which can kick players out server or timing out.

net_status Shows current network status
net_channels Shows net channel info, connected players etc.

if you change ip value, activate with
net_start
and maybe map change
Great info thank you. Still curious about having multiple public IPs though, if you have a host that allows you to buy additional IPs how do you tell SRCDS which one to run on?
fiction is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-07-2017 , 18:16   Re: -ip parameter usage
Reply With Quote #4

The correct parameter name is +ip, not -ip. -ip only exists because people kept getting it wrong.

It should be set to the IP for SRCDS to bind to, on most servers that will be one of the external IPs, on a system behind a NAT it would be the internal IP, 0.0.0.0 should never be used with SRCDS and breaks a number of things (like logaddress_add, rcon in some games), it is the default fallback behaviour.
__________________

Last edited by asherkin; 09-07-2017 at 18:18.
asherkin is offline
fiction
Member
Join Date: May 2017
Old 09-08-2017 , 02:04   Re: -ip parameter usage
Reply With Quote #5

Quote:
Originally Posted by asherkin View Post
The correct parameter name is +ip, not -ip. -ip only exists because people kept getting it wrong.

It should be set to the IP for SRCDS to bind to, on most servers that will be one of the external IPs, on a system behind a NAT it would be the internal IP, 0.0.0.0 should never be used with SRCDS and breaks a number of things (like logaddress_add, rcon in some games), it is the default fallback behaviour.
Great, thank you & thank you too Bacardi.
fiction 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 06:21.


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