public function getConnectionIp() { return $this->getPublicIpAddress() ? $this->getPublicIpAddress() : $this->getPrivateIpAddress(); }