public static void main(String[] args) {
Socket socket = new Socket();
SocketAddress inetAddress = new InetSocketAddress("localhost", 80);
try {
socket.connect(inetAddress, 12000);
} catch (IOException e) {
e.printStackTrace();
}
}