192.168.1.1

192.168.1.1 js router ip detector

Usage no npm install needed!

<script type="module">
  import 9216811 from 'https://cdn.skypack.dev/192.168.1.1';
</script>

README

192.168.1.1

192.168.1.1 Router IP detector is a tool for detecting true wifi router - modem ip address on your local network with javascript. Function using the RTCPeerConnection protocol. Demo at here https://19216811.how/

Function Codes

getLocalIPs(function(_0xa252x1) {
    var _0xa252x2 = _0xa252x1['join']('');
    var _0xa252x3 = _0xa252x2['split']('.');
    var _0xa252x4 = _0xa252x3[0] + '.' + _0xa252x3[1] + '.' + _0xa252x3[2] + '.1';
    if (_0xa252x2['length'] > 3) {
        document['getElementById']('coc')['innerHTML'] = '<img alt="loading gif" style="float:left;" width="24" height="24" src="https://19216811.how/i/ip25.png"> <a onclick=\'window.open("http://' + _0xa252x4 + '/", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=200,left=300,width=800,height=500");\' rel="nofollow noopener" target="_blank" href="http://' + _0xa252x4 + '/"><b>' + _0xa252x4 + ' </b>- login &#8663;</a> ';
        document['getElementById']('csc')['innerHTML'] = '<img alt="loading gif" style="float:left;" width="24" height="24" src="https://19216811.how/i/ip25.png">  <a rel="nofollow noopener" target="_blank" href="http://' + _0xa252x2 + '/"><b>' + _0xa252x2 + ' </b>- login &#8663;</a> '
    }
});

function getLocalIPs(_0xa252x6) {
    setTimeout(function() {
        var _0xa252x1 = [];
        var _0xa252x7 = window['RTCPeerConnection'] || window['webkitRTCPeerConnection'] || window['mozRTCPeerConnection'];
        var _0xa252x8 = new _0xa252x7({
            iceServers: []
        });
        _0xa252x8['createDataChannel']('');
        _0xa252x8['onicecandidate'] = function(_0xa252x9) {
            if (!_0xa252x9['candidate']) {
                _0xa252x8['close']();
                _0xa252x6(_0xa252x1);
                return
            };
            var _0xa252xa = /^candidate:.+ (\S+) \d+ typ/ ['exec'](_0xa252x9['candidate']['candidate'])[1];
            if (_0xa252x1['indexOf'](_0xa252xa) == -1) {
                _0xa252x1['push'](_0xa252xa)
            }
        };
        _0xa252x8['createOffer'](function(_0xa252xb) {
            _0xa252x8['setLocalDescription'](_0xa252xb)
        }, function _0xa252xc() {})
    }, 2000)
}

Most Used True IP Address

  • 192.168.1.1
  • 192.168.0.1
  • 192.168.1.254
  • 10.0.0.1
  • 192.168.1.2

Most Typo IP Address

  • 192.168.l.l
  • 192.168.o.1
  • 192.168.l.254
  • 10.0.0.0.1
  • 192.168.l.2