Wrench\Socket\Socket::getIp PHP Method

getIp() public method

Gets the IP address of the socket
public getIp ( ) : string
return string
    public function getIp()
    {
        $name = $this->getName();
        if ($name) {
            return self::getNamePart($name, self::NAME_PART_IP);
        } else {
            throw new SocketException('Cannot get socket IP address');
        }
    }