2024-04-06 20:03:03 +08:00
|
|
|
|
---
|
2024-04-13 20:19:26 +08:00
|
|
|
|
sidebar_position: 2
|
2024-04-06 20:03:03 +08:00
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# 连接服务器
|
|
|
|
|
|
|
|
|
|
## 端口
|
|
|
|
|
|
2024-05-03 19:21:22 +08:00
|
|
|
|
打开你服务器根目录的 `server.properties`
|
2024-04-06 20:03:03 +08:00
|
|
|
|
|
|
|
|
|
找到
|
|
|
|
|
|
2024-05-03 19:21:22 +08:00
|
|
|
|
```yaml
|
2024-04-06 20:03:03 +08:00
|
|
|
|
server-port=25565
|
|
|
|
|
```
|
|
|
|
|
|
2024-05-18 05:19:40 +08:00
|
|
|
|
`25565` 即mc服务器的默认端口,如果不更改默认端口通常可省略不写
|
2024-04-06 20:03:03 +08:00
|
|
|
|
|
2024-05-03 19:21:22 +08:00
|
|
|
|
## 回环地址
|
2024-04-06 20:03:03 +08:00
|
|
|
|
|
2024-05-18 05:19:40 +08:00
|
|
|
|
**回环地址**用来表示本机IP,通常有这样几种形式
|
2024-04-06 20:03:03 +08:00
|
|
|
|
|
2024-05-03 19:21:22 +08:00
|
|
|
|
1. localhost
|
|
|
|
|
2. 127.0.0.1
|
|
|
|
|
3. 0.0.0.0
|
2024-04-06 20:03:03 +08:00
|
|
|
|
|
2024-05-18 05:19:40 +08:00
|
|
|
|
如果你没有修改你的服务器端口,那么在你的mc客户端中:
|
2024-04-06 20:03:03 +08:00
|
|
|
|
|
2024-05-03 23:18:15 +08:00
|
|
|
|
1. 点击多人游戏
|
|
|
|
|
2. 点击添加服务器
|
|
|
|
|
3. 输入上面提到的回环地址中的任意一个
|
|
|
|
|
4. 点击完成
|
|
|
|
|
5. 进入服务器
|
2024-04-06 20:03:03 +08:00
|
|
|
|
|
2024-05-18 05:19:40 +08:00
|
|
|
|
如果你修改了你的服务器端口,在回环地址后面加个冒号加上你改的端口即可
|
2024-04-06 20:03:03 +08:00
|
|
|
|
|
|
|
|
|
如:
|
|
|
|
|
|
|
|
|
|
localhost:25566
|
|
|
|
|
|
|
|
|
|
127.0.0.1:25566
|
|
|
|
|
|
2024-04-13 20:19:26 +08:00
|
|
|
|
0.0.0.0:25566
|
|
|
|
|
|
2024-04-06 20:03:03 +08:00
|
|
|
|
## 面板
|
|
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
|
|
## 云服
|
|
|
|
|
|
2024-04-21 11:28:27 +08:00
|
|
|
|
TODO
|
|
|
|
|
|
2024-05-03 19:21:22 +08:00
|
|
|
|
TODO:开启防火墙
|