Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
422 B
3
Indexable
Never
import java.io.*;
import java.net.*;

public class Client {
public static void main(String[] args) {
	try{
	
		Socket s = new Socket("127.0.0.1",6666); //localhost
		
		DataOutputStream dout=new DataOutputStream(s.getOutputStream());

		dout.writeUTF("Hello UAPians.........");
		dout.flush();

	    dout.close();
	    s.close();
    }
    catch(Exception e)
	{
	    System.out.println(e);
	}
  }
}