mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2026-05-16 14:03:08 +08:00
readme
This commit is contained in:
@@ -26,19 +26,20 @@ P2P直连可以让你的设备跑满带宽。不论你的设备在任何网络
|
|||||||
openp2p.exe -d -node OFFICEPC1 -user USERNAME1 -password PASSWORD1
|
openp2p.exe -d -node OFFICEPC1 -user USERNAME1 -password PASSWORD1
|
||||||
```
|
```
|
||||||
|
|
||||||
`切记将标记大写的参数改成自己的`
|
> :warning: **切记将标记大写的参数改成自己的**
|
||||||
|
|
||||||

|

|
||||||
3. 在家里下载最新的[OpenP2P](https://gitee.com/tenderiron/openp2p/releases/),解压出来,在命令行执行
|
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
|
openp2p.exe -d -node HOMEPC123 -user USERNAME1 -password PASSWORD1 --peernode OFFICEPC1 --dstip 127.0.0.1 --dstport 3389 --srcport 23389 --protocol tcp
|
||||||
```
|
```
|
||||||
`切记将标记大写的参数改成自己的`
|
> :warning: **切记将标记大写的参数改成自己的**
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
`LISTEN ON PORT 23389 START` 看到这行日志表示P2PApp建立成功,监听23389端口。只需连接本机的127.0.0.1:23389就相当于连接公司Windows电脑的3389端口。
|
`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
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|||||||
13
README.md
13
README.md
@@ -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
|
tar xvf openp2p0.95.3.linux-amd64.tar.gz
|
||||||
openp2p -d -node OFFICEPC1 -user USERNAME1 -password PASSWORD1
|
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
|
Output sample
|
||||||

|

|
||||||
@@ -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
|
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
|
> :warning: **Must change the parameters marked in uppercase to your own**
|
||||||

|
|
||||||
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.
|
Output sample
|
||||||
|

|
||||||
|
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.
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user