服务端: 客户端:
ServerSocket server=new ServerSocket(port); Socket client=new Socket(Ip,port); Socket client=server.accept();
二者之间用IO流对接