-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
770635f
commit 5183b9b
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# 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 | ||
``` | ||
|
||
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! |