/** * Creates the server address object with the IP and port that a server should bind to. */ private ServerAddress createServerAddress(String host, int port) throws UnknownHostException { return new DefaultServerAddress(NetworkUtils.getLocalHostIp(host), port); }