From 3606867762cfec4eae5de1a0854c815ddfc733cd Mon Sep 17 00:00:00 2001 From: Roren Date: Fri, 30 Aug 2024 21:45:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EIPV4=E5=85=AC=E7=BD=91?= =?UTF-8?q?=E8=81=94=E6=9C=BA=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/.vuepress/theme.ts | 1 + src/playing/{index.md => README.md} | 1 + src/playing/online/README.md | 26 ++++++++++++++ src/playing/online/index.md | 0 src/playing/online/public_ipv4.md | 56 +++++++++++++++++++++++++++++ 5 files changed, 84 insertions(+) rename src/playing/{index.md => README.md} (97%) create mode 100644 src/playing/online/README.md delete mode 100644 src/playing/online/index.md create mode 100644 src/playing/online/public_ipv4.md diff --git a/src/.vuepress/theme.ts b/src/.vuepress/theme.ts index 52f6128..9f773f1 100644 --- a/src/.vuepress/theme.ts +++ b/src/.vuepress/theme.ts @@ -73,6 +73,7 @@ export default hopeTheme({ mark: true, plantuml: true, spoiler: true, + alert: true, stylize: [ { matcher: "Recommended", diff --git a/src/playing/index.md b/src/playing/README.md similarity index 97% rename from src/playing/index.md rename to src/playing/README.md index 77ef627..a8fed3c 100644 --- a/src/playing/index.md +++ b/src/playing/README.md @@ -8,6 +8,7 @@ date: 2024-08-30 category: - 游玩文档 # 一个页面可以有多个标签 +order: 0 tag: - 游戏中 # 此页面会在文章列表置顶 diff --git a/src/playing/online/README.md b/src/playing/online/README.md new file mode 100644 index 0000000..0a9e0f4 --- /dev/null +++ b/src/playing/online/README.md @@ -0,0 +1,26 @@ +--- + +title: 0.0.1 前言 +dir: + order: 1 + text: 联机相关教程 +order: 0 +# 这是页面的图标 +icon: file +author: Natsumi +date: 2024-08-30 +# 一个页面可以有多个分类 +category: + - 游玩文档 +# 一个页面可以有多个标签 +tag: + - 游戏中 + - 联机 +# 此页面会在文章列表置顶 +sticky: true +# 此页面会出现在星标文章中 +star: true +copyright: Copyright © 2024 BetterMinecraftHelpDocs Project +--- +在“联机相关教程”中您可以找到有关联机的方法以及方式。 +在左侧侧边栏选择章节以阅读 \ No newline at end of file diff --git a/src/playing/online/index.md b/src/playing/online/index.md deleted file mode 100644 index e69de29..0000000 diff --git a/src/playing/online/public_ipv4.md b/src/playing/online/public_ipv4.md new file mode 100644 index 0000000..a7734a9 --- /dev/null +++ b/src/playing/online/public_ipv4.md @@ -0,0 +1,56 @@ +--- + +title: 1.0.1 使用IPV4 公网进行联机 +order: 1 +# 这是页面的图标 +icon: file +author: Natsumi +date: 2024-08-30 +# 一个页面可以有多个分类 +category: + - 游玩文档 +# 一个页面可以有多个标签 +tag: + - 游戏中 + - 联机 +# 此页面会在文章列表置顶 +sticky: true +# 此页面会出现在星标文章中 +star: true +copyright: Copyright © 2024 BetterMinecraftHelpDocs Project +--- +> [!warning] +> 本文所需要公网IPV4地址 以及 一定的电脑常识 + +1. 启动Minecraft + +2. 进入一个世界 + +3. 创建局域网世界并输入端口(要求是你所记得的),并检查您的电脑是否已经放行。若不会,可以查看 [这篇教程](https://blog.csdn.net/zhangxiaoquan2016/article/details/140494911)。 + +若您的路由器需要转发端口到公网,您需要应用如下规则 +``` +协议:TCP +本地IP(IP):使用ipconfig查看本机的IP(以192.168.x.x开头的IP) +本地端口:如上你在我的世界中设置的端口 +远程端口:随意设置(范围在0到65535之内) +``` + +此时你的端口号应当为 远程端口号 + +本文以 11451 为例 +> [!caution] +> 注意:在公网上关闭防火墙很危险,本文极其不推荐这样做 + +4. 打开 [这里](https://myip.ipip.net/) 查看自己的IP地址 + +例如 若打开这个网站显示为 +``` +当前 IP:114.514.191.1 来自于:中国 xx xx xx +``` +则您的IP为 +``` +114.514.191.1 +``` + +5. 把`IP:端口号` 发给朋友,朋友也把 `IP:端口号` 输入到 `多人游戏-->添加服务器-->服务器地址` 中后点击完成,然后选中服务器加入即可 \ No newline at end of file