|
Author
|
Message
|
|
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
|

04-29-2011
, 16:59
Get Server's IP
|
#1
|
Well i wanted to get somehow the Server's ip. I noticed
on the cvar "ip" on my Server is returning "localhost" and in the cvar
"net_address" the local ip of this server. So i had a conclusion that if you don't specify a bind ip address, and the server is not connecting directly to a gateway but instead to a router, you will get server's Local IP with "net_address" although in my Public Servers, that they are connecting all of them directly into the gateway server [boxes in datacenter] in the cvars ip and net_address it displays to me the external ip , obviously the only ip in the box.
So i want something to cover both cases... is anything else exists from this 2 vars?
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
|
|
|
|