Update README.md

This commit is contained in:
lbl8603
2023-01-05 10:03:20 +08:00
committed by GitHub
parent 4001527a87
commit f39de52c65
+11 -5
View File
@@ -8,22 +8,28 @@ Virtual Network Tools
- 在一台mac设备上运行,获取到ip 10.13.0.2
<img width="506" alt="图片" src="https://user-images.githubusercontent.com/49143209/210379090-a3f21007-5a12-44d3-81d6-a69495209ea7.png">
<img width="506" alt="图片" src="https://user-images.githubusercontent.com/49143209/210379090-a3f21007-5a12-44d3-81d6-a69495209ea7.png">
- 在另一台windows上运行,获取到ip 10.13.0.3
![图片](https://user-images.githubusercontent.com/49143209/210380063-d02c5b46-8fef-4e21-aa9b-6c2defcb1412.png)
![图片](https://user-images.githubusercontent.com/49143209/210380063-d02c5b46-8fef-4e21-aa9b-6c2defcb1412.png)
- 此时这两个设备之间就能用ip相互访问了
<img width="437" alt="图片" src="https://user-images.githubusercontent.com/49143209/210380969-4a7c0f23-1e88-4ab6-9cc2-0c0f086848ac.png">
<img width="437" alt="图片" src="https://user-images.githubusercontent.com/49143209/210380969-4a7c0f23-1e88-4ab6-9cc2-0c0f086848ac.png">
- 查看其他已连接的设备
- 查看其他已连接的设备(p2p表示NAT打洞成功,relay表示使用服务器中继转发)
![图片](https://user-images.githubusercontent.com/49143209/210683578-df4ee958-6e77-44f4-b6af-2b9c907a952a.png)
![图片](https://user-images.githubusercontent.com/49143209/210683578-df4ee958-6e77-44f4-b6af-2b9c907a952a.png)
- token的作用是标识一个虚拟局域网,当使用公共服务器时,建议使用一个唯一值当token(比如uuid),否则有可能连接到其他人创建的虚拟局域网中
- 公共服务器目前的配置是2核4G 4Mbps,有需要再扩展~
### 使用须知
- 需要root/管理员权限
- 使用命令行运行
- Mac和Linux下需要加可执行权限(例如:chmod +x ./switch-macos)
### 支持平台
- Mac
- Linux