Visitor::ip PHP Method

ip() public static method

Returns the ip address of the current visitor
public static ip ( ) : string
return string
    public static function ip()
    {
        return getenv('REMOTE_ADDR');
    }