public function getClientIp($checkProxy = true)
        {
            if ($checkProxy && $this->getServer('HTTP_CLIENT_IP') != null) {
                $ip = $this->getServer('HTTP_CLIENT_IP');
            } else if ($checkProxy && $this->getServer('HTTP_X_FORWARDED_FOR') != null) {
                $ip = $this->getServer('HTTP_X_FORWARDED_FOR');
            } else {
                $ip = $this->getServer('REMOTE_ADDR');
            }

            return $ip;
        }