https://github.com/yowenter/py-p2p
NAT UDP 穿透 p2p poc
https://github.com/yowenter/py-p2p
Last synced: 3 months ago
JSON representation
NAT UDP 穿透 p2p poc
- Host: GitHub
- URL: https://github.com/yowenter/py-p2p
- Owner: yowenter
- Created: 2015-12-23T07:14:47.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-22T03:16:29.000Z (over 9 years ago)
- Last Synced: 2025-02-15T20:49:50.996Z (11 months ago)
- Language: Python
- Homepage:
- Size: 2.51 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#P2P connection example by python
##Support UDP
### 原理:
- 每个节点先中介服务器,并告诉自己的内网ip .
- 中介服务器接收到每个节点的内网ip ,并广播给所有节点 其他节点的外网ip 和内网ip 。
- 每个节点接收到其他节点的内网ip,外网ip 之后,分别发送信息。
###reference
p2pnat[http://www.bford.info/pub/net/p2pnat/]