服务器端:ServerSocket server = new ServerSocket(9994);
server.accept();
System.out.println("a client have been connected!");
客户端:Socket socket = new Socket("localhost", 9994);
System.out.println("connected");
为什么我自己电脑的客户端连接不上服务器端呢 ??纠结了好几天了一直没解决。。有大神么?
server.accept();
System.out.println("a client have been connected!");
客户端:Socket socket = new Socket("localhost", 9994);
System.out.println("connected");
为什么我自己电脑的客户端连接不上服务器端呢 ??纠结了好几天了一直没解决。。有大神么?