This commit is contained in:
hhd
2021-11-25 11:00:17 +08:00
parent c6f50992c3
commit f01ca64dd9
2 changed files with 12 additions and 8 deletions

View File

@@ -26,19 +26,20 @@ P2P直连可以让你的设备跑满带宽。不论你的设备在任何网络
openp2p.exe -d -node OFFICEPC1 -user USERNAME1 -password PASSWORD1
```
`切记将标记大写的参数改成自己的`
> :warning: **切记将标记大写的参数改成自己的**
![image](/doc/images/officelisten.png)
3. 在家里下载最新的[OpenP2P](https://gitee.com/tenderiron/openp2p/releases/),解压出来,在命令行执行
```
openp2p.exe -d -node HOMEPC123 -user USERNAME1 -password PASSWORD1 --peernode OFFICEPC1 --dstip 127.0.0.1 --dstport 3389 --srcport 23389 --protocol tcp
```
`切记将标记大写的参数改成自己的`
> :warning: **切记将标记大写的参数改成自己的**
![image](/doc/images/homeconnect.png)
![image](/doc/images/mem.png)
`LISTEN ON PORT 23389 START` 看到这行日志表示P2PApp建立成功监听23389端口。只需连接本机的127.0.0.1:23389就相当于连接公司Windows电脑的3389端口。
4. 在家里Windows电脑按Win+R输入mstsc打开远程桌面输入127.0.0.1:23389 /admin
4. 在家里Windows电脑按Win+R输入mstsc打开远程桌面输入127.0.0.1:23389 /admin
![image](/doc/images/mstscconnect.png)
![image](/doc/images/afterconnect.png)

View File

@@ -36,7 +36,8 @@ Under the outbreak of covid-19 pandemic, surely remote work becomes a fundamenta
tar xvf openp2p0.95.3.linux-amd64.tar.gz
openp2p -d -node OFFICEPC1 -user USERNAME1 -password PASSWORD1
```
`Must change the parameters marked in uppercase to your own`
> :warning: **Must change the parameters marked in uppercase to your own**
Output sample
![image](/doc/images/officeexecute_linux.png)
@@ -45,10 +46,12 @@ Under the outbreak of covid-19 pandemic, surely remote work becomes a fundamenta
```
openp2p.exe -d -node HOMEPC123 -user USERNAME1 -password PASSWORD1 --peernode OFFICEPC1 --dstip 127.0.0.1 --dstport 22 --srcport 22022 --protocol tcp
```
`Must change the parameters marked in uppercase to your own`
Output sample
![image](/doc/images/homeconnect_windows.png)
The log of `LISTEN ON PORT 22022 START` indicates P2PApp runs successfully on your home device, listing port is 22022. Once connects to local ip:port,127.0.0.1:22022, it means the home device has conneccted to the office device's port, 22.
> :warning: **Must change the parameters marked in uppercase to your own**
Output sample
![image](/doc/images/homeconnect_windows.png)
The log of `LISTEN ON PORT 22022 START` indicates P2PApp runs successfully on your home device, listing port is 22022. Once connects to local ip:port,127.0.0.1:22022, it means the home device has conneccted to the office device's port, 22.
![image](/doc/images/officelisten_2_linux.png)