Update Server.java

This commit is contained in:
xixu-me committed 2024-07-01 22:28:39 +08:00
1 parent b727833c17
commit 2c81527bf0
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@ public class Server {
public static void main(String[] args) throws Exception {
// 创建服务器
int port = 1234;
int port = 9999;
ServerSocket server = new ServerSocket(port);
System.out.println("服务器正在1234端口侦听客户端请求");
// 循环等待客户端请求