 # 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]

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


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