Skip to content

P2P Communication across Network Address Translators with TCP

Notifications You must be signed in to change notification settings

TheOnlyArtz/rust-tcp-holepunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

rust-tcp-holepunch

Prerequisites

Your rendezvous server must lay in a network which doesn't have a NAT! The peers may or may not lay in the same network

Getting Started

server (The server runs on port 3000) Running the rendezvous server should be as simple as running

cargo r

or (assuming you've compiled)

./server.exe

Example

running the server on a VPS (without a NAT!!!!)

./server.exe

client A on network A

./client.exe

client B on network B

./client.exe
How it looks in Wireshark

image

The peers may now communicate with each other. you may close the rendezvous server and watch as they speak without the need of port-forwarding!

About

P2P Communication across Network Address Translators with TCP

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages