public function getLocalIp()
    {
        $address = $this->getLocalAddress();
        $pos = strrpos($address, ':');
        if (!$pos) {
            return '';
        }
        return substr($address, 0, $pos);
    }
public function getLocalIp()
    {
        $address = $this->getLocalAddress();
        $pos = strrpos($address, ':');
        if (!$pos) {
            return '';
        }
        return substr($address, 0, $pos);
    }
public function getLocalIp ( ) { $ address = $ this -> getLocalAddress ( ) ; $ pos = strrpos ( $ address , ':' ) ; if ( ! $ pos ) { return '' ; } return substr ( $ address , 0 , $ pos ) ; }
Get local IP.

@return string
Get local IP .