" String host = ...;
InetSocketAddress socketAddress = new
InetSocketAddress(host, 80);
channel = SocketChannel.open();
channel.configureBlocking(false);
channel.connect(socketAddress);