Update README.md
This commit is contained in:
@@ -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:
|
||||
|
||||

|
||||

|
||||
|
||||
- 此时这两个设备之间就能用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表示使用服务器中继转发)
|
||||
|
||||

|
||||

|
||||
|
||||
- token的作用是标识一个虚拟局域网,当使用公共服务器时,建议使用一个唯一值当token(比如uuid),否则有可能连接到其他人创建的虚拟局域网中
|
||||
- 公共服务器目前的配置是2核4G 4Mbps,有需要再扩展~
|
||||
|
||||
### 使用须知
|
||||
- 需要root/管理员权限
|
||||
- 使用命令行运行
|
||||
- Mac和Linux下需要加可执行权限(例如:chmod +x ./switch-macos)
|
||||
|
||||
### 支持平台
|
||||
- Mac
|
||||
- Linux
|
||||
|
||||
Reference in New Issue
Block a user