index.js
function getHostname()
{
  var interfaces = networkInterfaces()
  for(var name in interfaces)
  {
    var info = interfaces[name].filter(filterIPv4)[0]
    if(info) return info.address
  }
}
function getHostname()
{
  var interfaces = networkInterfaces()
  for(var name in interfaces)
  {
    var info = interfaces[name].filter(filterIPv4)[0]
    if(info) return info.address
  }
}
function getHostname ( ) { var interfaces = networkInterfaces ( ) for ( var name in interfaces ) { var info = interfaces [ name ] . filter ( filterIPv4 ) [ 0 ] if ( info ) return info . address } }
Get the adfress of an external IPv4 network interface in the current system

@return {string|undefined}
Get the adfress of an external IPv4 network interface in the current system