def getip():
  """
  getip()

  Returns the IP address of the computer. Helpful for those hosts that might
  sit behind gateways and report a hostname that is a little strange (I'm
  looking at you oco3-sim1).
  """
  return [(s.connect(('8.8.8.8', 80)), s.getsockname()[0], s.close()) for s in [socket.socket(socket.AF_INET, socket.SOCK_DGRAM)]][0][1]