udp-holepunch - Python script for UDP holepunching using a webserver. With an example of SSH using this and sctp-echo.

git clone https://benconnors.ca/git-repos/udp-holepunch

About | Log | Files | Refs

commit 9be44070e11307f3a855a8ab6bb2c525930012e1
parent edbe28521348adf794b914c3372988b2c94623ed
Author: Ben Connors <benconnors@outlook.com>
Date:   Wed,  5 Aug 2026 16:10:48 -0400

Fix to reduce CPU usage

Diffstat:
Mssh_holepunch_client.py | 2+-
Mssh_holepunch_server.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ssh_holepunch_client.py b/ssh_holepunch_client.py @@ -81,4 +81,4 @@ if __name__ == "__main__": stdout=sys.stdout.buffer.raw, ## Must use raw or e.g. vi will crash it stdin=sys.stdin.buffer.raw, ) - client.communicate() + client.wait() diff --git a/ssh_holepunch_server.py b/ssh_holepunch_server.py @@ -113,5 +113,5 @@ if __name__ == "__main__": ## Communicate with socat; this lets us bypass the fact that sctp-echo doesn't ## have timeout functionality - socat.communicate() + socat.wait() server.terminate()