Raised This Month: $ Target: $400
 0% 

Get Server's IP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-29-2011 , 16:59   Get Server's IP
Reply With Quote #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))
ProIcons is offline
 


Thread Tools
Display Modes

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 04:24.


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