开发者

Using python and the bittorrent protocol

开发者 https://www.devze.com 2023-01-21 05:38 出处:网络
I wanted to write a program with could send and receive data over a NAT 开发者_JS百科router without having to set up port forwarding first. Do i need to use the bittorrent protocol or is there somethi

I wanted to write a program with could send and receive data over a NAT 开发者_JS百科router without having to set up port forwarding first. Do i need to use the bittorrent protocol or is there something better?


BitTorrent is not a NAT traversal technology but a P2P file sharing protocol. Unless you want to transfer files BitTorrent probably won't help much.

Some routers will let you setup a port mapping using UPnP. (see this other question to find a Python UPnP client library)

An alternative would be to setup Teredo tunneling on your machine. That will hopefully take care of NAT traversal and give you a real unfirewalled IPv6 address behind your IPv4 NAT router.

0

精彩评论

暂无评论...
验证码 换一张
取 消