Godot Tailscale P2P
I built a GDExtension that provides P2P multiplayer networking for Godot 4 using Tailscale. Players can connect directly across the internet without any dedicated servers. GitHub - johnson270cpu/godot-tailscale-p2p: P2P multiplayer extension for Godot 4 using Tailscale. Connect players directly without servers. Currently Linux, seeking contributors for Windows/macOS/Android. · GitHub
Features
- Direct P2P connections - No central server required
- Works with Godot’s built-in MultiplayerPeer and RPC system
- NAT traversal using Tailscale
- Linux support (working now)
What Works
| Feature | Status |
|---|---|
| Linux x86_64 | |
| UDP packet sending/receiving | |
| Godot MultiplayerPeer interface | |
| Chat demo |
What Needs Help (Contributors Wanted!)
| Task | Difficulty |
|---|---|
| Windows port | Medium |
| macOS port | Medium |
| Android support | High |
| LAN auto-discovery | Medium |
Usage Example
extends Node2D
var peer = null
func _ready():
peer = TailscaleMultiplayerPeer.new()
# Host a game
peer.start_server(9999)
# Or join a friend
# peer.connect_to_peer("192.168.1.100", 9999)
multiplayer.multiplayer_peer = peer