code: static java.net.InetAddress getLocalAddress() throws IOException {
      try {
        return java.net.InetAddress.getLocalHost();
      } catch (java.net.UnknownHostException e) {
        throw new IOException(e);
      }
    }
docs: A helper function to get the local address of the machine
  @return the local address of the current machine
  @throws IOException