explaingit

danterolle/tund

Analysis updated 2026-05-18

9CAudience · developerComplexity · 3/5LicenseSetup · moderate

TLDR

A lightweight tool written in C that creates a private virtual LAN over UDP, mainly for LAN party gaming and direct-IP multiplayer with friends.

Mindmap

mindmap
  root((TunD))
    What it does
      Virtual LAN over UDP
      Encrypted transport
      Auto peer discovery
    Tech stack
      C
      Wintun
      Flutter GUI
    Use cases
      LAN party gaming
      Direct-IP multiplayer
      Private subnet
    Audience
      Gamers
      Developers
      Self-hosters

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Set up a private virtual LAN for a LAN party or direct-IP multiplayer game.

USE CASE 2

Play games that expect a local network even when players are on separate physical networks.

USE CASE 3

Give friends a shared private IP range without registering with an external service.

USE CASE 4

Use the Flutter desktop GUI as a simpler launcher instead of the command line.

What is it built with?

CUDPFlutterWintun

How does it compare?

danterolle/tundalexzorzi/inferno-androidgregordinary/rocket-userspace
Stars9108
LanguageCCC
Setup difficultymoderatehardhard
Complexity3/55/55/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

The CLI needs administrator or root privileges for TUN device setup, and the server needs a reachable UDP port over the internet.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

TunD is a small tool that creates a virtual LAN, a private network that makes computers in different physical locations behave as if they were plugged into the same local network. It was built mainly for LAN party style gaming, unreliable home networks, or playing games directly with friends over the internet using IP addresses. One machine runs TunD in server mode, and every other machine connects to it as a client. Once connected, clients automatically discover one another and get a virtual IP address in a private range, such as 10.9.0.2. Traffic between clients is tunneled through the server over UDP, and the connection is encrypted between each client and the server, though the server itself can still see the traffic since it needs to route it. The project explains that it is deliberately narrower than tools like WireGuard, Tailscale, or ZeroTier. Those handle general purpose secure networking, while TunD focuses specifically on giving games and similar software a fixed private subnet with automatic peer discovery and broadcast support, without needing accounts or an external service. TunD is written in C so it can talk directly to low level networking pieces like UDP sockets and TUN devices, and it works on Windows, macOS, and Linux, using Wintun for TUN support on Windows. There is also an optional Flutter based desktop app for people who prefer a graphical launcher over the command line interface. The author notes that AI assistance was used during development, more heavily for the Flutter GUI portion than for the C networking core. Getting started involves generating a random shared key, running the tool in server mode on one machine with administrator or root privileges, and then connecting other machines as clients using that same key. Pre-built binaries are available on the releases page, and the project is released under the MIT license.

Copy-paste prompts

Prompt 1
Walk me through setting up a TunD server and connecting two client machines to it.
Prompt 2
Explain how TunD's encryption works between clients and the server.
Prompt 3
Help me troubleshoot a game that is not auto-discovering peers over TunD.
Prompt 4
Compare TunD to WireGuard and tell me when I should use each one.

Frequently asked questions

What is tund?

A lightweight tool written in C that creates a private virtual LAN over UDP, mainly for LAN party gaming and direct-IP multiplayer with friends.

What language is tund written in?

Mainly C. The stack also includes C, UDP, Flutter.

What license does tund use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is tund to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is tund for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.