Code:
Socket socket = new Socket("google.com", 80);
//print out raw html
Socket socket = new Socket("google.com", 80);
//print out raw html
port = 4321; Socket socket = new ServerSocket(port).accept(); //get streams and do io
port = 4321; //replace "0.0.0.0" with ip address of host computer.
Leave a comment: