lib/helpers.js
function (testOverride) {
    var ret = '127.0.0.1'
    os = testOverride || os
    var interfaces = os.networkInterfaces()

    Object.keys(interfaces).forEach(function (el) {
      interfaces[el].forEach(function (el2) {
        if (!el2.internal && el2.family === 'IPv4') {
          ret = el2.address
        }
      })
    })

    return ret
  }
function (testOverride) {
    var ret = '127.0.0.1'
    os = testOverride || os
    var interfaces = os.networkInterfaces()

    Object.keys(interfaces).forEach(function (el) {
      interfaces[el].forEach(function (el2) {
        if (!el2.internal && el2.family === 'IPv4') {
          ret = el2.address
        }
      })
    })

    return ret
  }
function ( testOverride ) { var ret = '127.0.0.1' os = testOverride || os var interfaces = os . networkInterfaces ( ) Object . keys ( interfaces ) . forEach ( function ( el ) { interfaces [ el ] . forEach ( function ( el2 ) { if ( ! el2 . internal && el2 . family === 'IPv4' ) { ret = el2 . address } } ) } ) return ret }
get server address from network interface
get server address from network interface