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
|
|
|
---
|
|
|
|
|
|
|
|
# 连接服务器
|
|
|
|
|
|
|
|
## 端口
|
|
|
|
|
|
|
|
打开你服务器跟目录的 `server.properties`
|
|
|
|
|
|
|
|
找到
|
|
|
|
|
|
|
|
```
|
|
|
|
server-port=25565
|
|
|
|
```
|
|
|
|
|
|
|
|
`25565` 即mc服务器的默认端口,如果不更改默认端口通常可省略不写
|
|
|
|
|
|
|
|
## 本地
|
|
|
|
|
2024-04-13 20:19:26 +08:00
|
|
|
用来表示**本机**有这样几种方式
|
2024-04-06 20:03:03 +08:00
|
|
|
|
|
|
|
```
|
|
|
|
# 1.
|
|
|
|
localhost
|
|
|
|
# 2.
|
|
|
|
127.0.0.1
|
2024-04-13 20:19:26 +08:00
|
|
|
# 2.
|
|
|
|
0.0.0.0
|
2024-04-06 20:03:03 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
如果你没有修改你的服务器端口,那么在你的mc客户端中:
|
|
|
|
|
|
|
|
- 1.点击多人游戏
|
|
|
|
- 2.点击添加服务器
|
2024-04-13 20:19:26 +08:00
|
|
|
- 3.输入 localhost/127.0.0.1/0.0.0.0
|
2024-04-06 20:03:03 +08:00
|
|
|
- 4.点击完成
|
|
|
|
- 5.进入服务器
|
|
|
|
|
2024-04-13 20:19:26 +08:00
|
|
|
如果你修改了你的服务器端口,在localhost/127.0.0.1/0.0.0.0后面加个冒号加上你改的端口即可
|
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
|
|
|
|
|
|
|
|
TODO:开启防火墙
|