 # Interfaces with multiple addresses have a repeated name.
 #
 exports.getNetworkInterfaces = ->
+  os = require 'os'
   ret = []
   ifaces = os.networkInterfaces()
   for k,v of ifaces



#
# Function returns an Array of system network interfaces defined by the following object:

# Function returns an external IP address for the current machine.
#
exports.getExternalIPAddress = ->
  os = require 'os'
  ifaces = os.networkInterfaces()
  for own dev of ifaces
    for i in ifaces[dev]
