当前位置:网站首页>使用zerotier让异地设备组局域网
使用zerotier让异地设备组局域网
2022-04-23 05:07:00 【Lotion1977】
现在因为疫情流行居家办公,经常有要和公司的异地网络或者电脑交互的情况。frp的内网穿透只能转发端口,而且配置也有些麻烦。如果有和公司电脑组建内网需求,zerotier就派上用场了。 |
注册zerotier账户
打开https://my.zerotier.com/ ,点击 Register ,正常邮箱注册就可以。登录上之后是这个界面
创建网络
点击显眼的"Create A Network" ,默认会自动创建一个网络。牢记“NETWORK ID” 后面需要用到。
生成默认就够了,如果需要更详细的网络配置,比如换个网段,可以在点进去配置一下。
安装客户端
这里以两个windows设备为例,在 https://www.zerotier.com/download 页面下载对应的客户端。然后安装。安装好后系统右下角托盘会出现zerotier的logo 。
加入子网
输入ID
鼠标右键托盘里的zerotier logo,选择“Open contorl panel”打开面板,左边面板显示“Online”表示和Zerotier的服务器连接成功,在中间下面填入第一步中在Zerotine网站上创建的子网“NETWORK ID”加入子网。
程序会新建一个虚拟网卡
在zerotier网站上同意设备加入
www.donews.com/news/detail/4/2954834.html
www.51cto.com/it/news/2019/1230/17971.html
news.163.com/17/1212/09/D5EQJ2A400014AEE.html
把所有需要组内网的设备进行如上操作
全部加入之后会显示IP,这个IP就是分配到各个设备上的Zerotier 局域网 IP。能互相ping通的。局域网组建成功了,局域网的玩法也都解锁了,比如远程桌面连接等等
原理
原理就是UDP打洞,组建P2P网络。Zerotier服务器作用是把设备的公网IP通知到各个设备,尝试让各方互相打洞,如果打洞成功,就是连接成功,至于网络质量要取决于运营商。由于国内特殊的网络环境(限制UDP),很容易遇到打洞失败的情况。即使照着教程连接不上也是正常的。习惯就好。下节讲自建Moon,尝试由Moon握手打洞或者走Moon转发全部流量。
版权声明
本文为[Lotion1977]所创,转载请带上原文链接,感谢
https://blog.51cto.com/u_14535459/5247540
边栏推荐
- redis和mysql区别
- Progress of innovation training (IV)
- Sword finger offer: push in and pop-up sequence of stack
- Leetcode -- heuristic search
- Manually write smart pointer shared_ PTR function
- Unity C# 网络学习(四)
- JS engine loop mechanism: synchronous, asynchronous, event loop
- 深度学习笔记 —— 数据增广
- MySQL 慢查询
- Pixel 5 5g unlocking tutorial (including unlocking BL, installing edxposed and root)
猜你喜欢
深度学习笔记 —— 物体检测和数据集 + 锚框
泰克示波器DPO3054自校准SPC失败维修
Sword finger offer: the median in the data stream (priority queue large top heap small top heap leetcode 295)
Deep learning notes - semantic segmentation and data sets
AQS source code reading
MySQL memo (for your own query)
The 2021 more reading report was released, and the book consumption potential of post-95 and Post-00 rose
Leetcode 1547: minimum cost of cutting sticks
Use model load_ state_ Attributeerror appears when dict(): 'STR' object has no attribute 'copy‘
CLion+OpenCV identify ID number - detect ID number
随机推荐
MySQL 慢查询
MySQL views the SQL statement details executed by the optimizer
Deep learning notes - object detection and dataset + anchor box
多线程基本概念(并发与并行、线程与进程)和入门案例
Innovation training (V) configuration information
QPushButton slot function is triggered multiple times
Define defines constants and macros, pointers and structures
Sword finger offer: the path with a certain value in the binary tree (backtracking)
scp命令详解
C. Tree Infection(模拟+贪心)
Manually write smart pointer shared_ PTR function
Learning Android V from scratch - UI
[WinUI3]編寫一個仿Explorer文件管理器
calendar. Pit point of getactualmaximum (calendar. Day_of_month)
L2-011 play binary tree (build tree + BFS)
The 2021 more reading report was released, and the book consumption potential of post-95 and Post-00 rose
Independent station operation | Facebook marketing artifact - chat robot manychat
A trinomial expression that causes a null pointer
Live delivery form template - automatically display pictures - automatically associate series products
The vscode ipynb file does not have code highlighting and code completion solutions