Update Server.java
This commit is contained in:
1 parent
b727833c17
commit
2c81527bf0
1 file changed
+1
-1
@@ -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端口侦听客户端请求");
|
||||
// 循环等待客户端请求
|
||||
|
||||
Reference in new issue
Block a user