Get IP address string
#17
(21 Apr 14, 04:32PM)PhaNtom Wrote:
(21 Apr 14, 03:27PM)Ronald_Reagan Wrote: Client displays any address ending with 0 as a .x iirc.

Actually if i remember correctly it doesn't check for the IP ending with .0, rather it checks to see if the player is admin or not. By removing the condition it does however just show the first 3 octets of the IP with the .0

No, how else would RK mod his servers to show the full IP to everyone?

Relevant client code:
if(ip[3] != 0 || player1->clientrole==CR_ADMIN)
            // full IP
        else  // censored IP
Thanks given by:


Messages In This Thread
Get IP address string - by Mousikos - 20 Apr 14, 06:54PM
RE: Get IP address string - by macm - 20 Apr 14, 10:26PM
RE: Get IP address string - by Felix-The-Ghost - 20 Apr 14, 11:29PM
RE: Get IP address string - by PhaNtom - 21 Apr 14, 04:39AM
RE: Get IP address string - by Felix-The-Ghost - 21 Apr 14, 09:34AM
RE: Get IP address string - by Ronald_Reagan - 21 Apr 14, 03:27PM
RE: Get IP address string - by Felix-The-Ghost - 21 Apr 14, 04:10PM
RE: Get IP address string - by PhaNtom - 21 Apr 14, 04:32PM
RE: Get IP address string - by Felix-The-Ghost - 21 Apr 14, 04:36PM
RE: Get IP address string - by PhaNtom - 21 Apr 14, 04:44PM
RE: Get IP address string - by Felix-The-Ghost - 21 Apr 14, 04:52PM
RE: Get IP address string - by PhaNtom - 21 Apr 14, 05:00PM
RE: Get IP address string - by Jpablon - 21 Apr 14, 05:57PM
RE: Get IP address string - by Mousikos - 22 Apr 14, 04:05PM
RE: Get IP address string - by PhaNtom - 21 Apr 14, 07:03PM
RE: Get IP address string - by -Subjective - 21 Apr 14, 08:55PM
RE: Get IP address string - by Mousikos - 21 Apr 14, 09:24PM
RE: Get IP address string - by Ronald_Reagan - 22 Apr 14, 03:31PM
RE: Get IP address string - by PhaNtom - 22 Apr 14, 03:39PM
RE: Get IP address string - by RandumKiwi - 22 Apr 14, 11:09PM
RE: Get IP address string - by PhaNtom - 22 Apr 14, 11:25PM
RE: Get IP address string - by RandumKiwi - 24 Apr 14, 07:35AM
RE: Get IP address string - by Mousikos - 24 Apr 14, 02:40PM
RE: Get IP address string - by PhaNtom - 24 Apr 14, 04:28PM
RE: Get IP address string - by RandumKiwi - 24 Apr 14, 10:21PM
RE: Get IP address string - by Mousikos - 25 Apr 14, 01:44AM