r/lanparty • u/danterolle • Jul 13 '26
Tund — virtual LAN tool written in C (open source, cross-platform)
Recently I played Artemis (a spaceship bridge simulator) with friends over LAN. Everyone uses a different OS, and every tool we tried had some limitation: not available on GNU/Linux or MacOS, capped at 10 clients or required account registration.
So here's Tund https://github.com/danterolle/tund
A single hub-and-spoke tiny binary in C that creates a virtual IPv4 LAN over UDP. One machine runs as the hub, everyone else connects as clients. Each client gets a 10.9.0.x address and can reach every other client — all traffic is relayed through the hub. NAT traversal is handled automatically.
The TUN interface is created natively on each platform: Linux and macOS use system APIs, Windows bundles Wintun. There are zero external dependencies beyond what the OS provides.
The only important note is that it should run on trusted networks: the shared key authenticates peers but there is no encryption. If you need privacy, use something else. This is a focused tool for game nights with trusted friends, where you just want things to work without accounts or complex configuration.
Website for quick start: https://danterolle.github.io/tund/
2
u/Jealous_Diver_5624 Jul 13 '26
Vibecoding aside, I like the concept of the simple CLI, but why couldn't this have been a thin wrapper around Wireguard? Would've probably lowered the complexity by quite a bit, and improved security by a lot.
1
u/vechloran Jul 13 '26
Gave it a quick shot on windows, and while three windows boxes can all start a server, they all fail to start the client and I get this error:
[16:16:17] [ERROR] Cannot resolve '10.0.99.99': Either the application has not called WSAStartup, or WSAStartup failed.
[16:16:17] [ERROR] Failed to initialize client
Looks like its not happy with my winsock startup, but not sure why, this is my command.
tund.exe client -s 10.0.99.99 -n "mypc" -k "VeryLongKeyOfSecurity"
1
u/micush Jul 14 '26
Cool! I wrote one i go that is similar, but it's full mesh and does some additional stuff. Different use cases, but the more the merrier! Nice job.
1
u/puneet95 Jul 21 '26
Some older games like Blur rely on automatic lan discovery instead of manually entering IP.
Does this work for games like Blur?