function isLocalIp(ip) {
        var p = ip.split(".").map(function(x) { return parseInt(x); });

        return  ip === "127.0.0.1" ||
                p[0] === 10 ||
                (p[0] === 192 && p[1] === 168) ||
                (p[0] === 172 && p[1] > 15 && p[1] < 32);
    }
// Helper function to tell what an localIP is.
Helper function to tell what an localIP is.
Helper function to tell what an localIP is .
function isLocalIp(ip) {
        var p = ip.split(".").map(function(x) { return parseInt(x); });
        return  ip === "127.0.0.1" ||
                p[0] === 10 ||
                (p[0] === 192 && p[1] === 168) ||
                (p[0] === 172 && p[1] > 15 && p[1] < 32);
    }
function isLocalIp ( ip ) { var p = ip . split ( "." ) . map ( function ( x ) { return parseInt ( x ) ; } ) ; return ip === "127.0.0.1" || p [ 0 ] === 10 || ( p [ 0 ] === 192 && p [ 1 ] === 168 ) || ( p [ 0 ] === 172 && p [ 1 ] > 15 && p [ 1 ] < 32 ) ; }
Helper function to tell what an localIP is.
Helper function to tell what an localIP is .