Elastica\Node\Info::getIp PHP Метод

getIp() публичный Метод

Return IP of the node.
public getIp ( ) : string
Результат string Returns Node ip address
    public function getIp()
    {
        // Returns string in format: inet[/192.168.1.115:9201]
        $data = $this->get('http_address');
        $data = substr($data, 6, strlen($data) - 7);
        $data = explode(':', $data);
        return $data[0];
    }