Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

P2P Net

An asset by elestranobaron
The page banner background of a mountain and forest
P2P Net hero image

Quick Information

0 ratings
P2P Net icon image
elestranobaron
P2P Net

Generic P2P networking layer for Godot 4. Provides a WebSocket signaling client and server (compatible with the official Godot webrtc_signaling demo), WebRTC mesh transport, and a simple raw-bytes API.Features:- host_room() / join_room() with room codes- send_to() and broadcast() with Error return codes- seal_lobby(), peer_joined when WebRTC is ready- Optional local signaling server scene (port 8080)- Headless smoke tests includedDesktop exports require the webrtc-native GDExtension (https://github.com/godotengine/webrtc-native). HTML5 uses Godot's built-in WebRTC. Run godot --import once after installing the extension.

Supported Engine Version
4.3
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
4 hours ago
Git URL
Issue URL

P2P Net — Godot Asset Library package

Game-agnostic P2P transport for Godot 4: WebSocket signaling + WebRTC mesh, raw bytes API.

This folder is the standalone Git repository root to publish on GitHub and submit to the Godot Asset Library.

Repository layout

p2p_net/                 ← this repo root
  LICENSE
  README.md
  icon.png
  .gitignore
  addons/p2p_net/        ← generated by export script

Publish workflow

From the Forces Godot project (or after editing addons/p2p_net/):

cd godot
.\tools\export_p2p_assetlib.ps1

Then publish assetlib/p2p_net/ as its own Git repo:

cd assetlib/p2p_net
git init
git add .
git commit -m "Initial release 1.0.0"
git remote add origin https://github.com/YOUR_USER/godot-p2p-net.git
git push -u origin main

See SUBMIT.md for Asset Library form values.

Desktop dependency (important)

On desktop exports, install webrtc-native into your game project as res://webrtc/ (GDExtension). HTML5 uses Godot's built-in WebRTC.

Run once after install:

godot --headless --path . --import --quit

License

MIT — see LICENSE.

Generic P2P networking layer for Godot 4. Provides a WebSocket signaling client and server (compatible with the official Godot webrtc_signaling demo), WebRTC mesh transport, and a simple raw-bytes API.

Features:
- host_room() / join_room() with room codes
- send_to() and broadcast() with Error return codes
- seal_lobby(), peer_joined when WebRTC is ready
- Optional local signaling server scene (port 8080)
- Headless smoke tests included

Desktop exports require the webrtc-native GDExtension (https://github.com/godotengine/webrtc-native). HTML5 uses Godot's built-in WebRTC. Run godot --import once after installing the extension.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
P2P Net icon image
elestranobaron
P2P Net

Generic P2P networking layer for Godot 4. Provides a WebSocket signaling client and server (compatible with the official Godot webrtc_signaling demo), WebRTC mesh transport, and a simple raw-bytes API.Features:- host_room() / join_room() with room codes- send_to() and broadcast() with Error return codes- seal_lobby(), peer_joined when WebRTC is ready- Optional local signaling server scene (port 8080)- Headless smoke tests includedDesktop exports require the webrtc-native GDExtension (https://github.com/godotengine/webrtc-native). HTML5 uses Godot's built-in WebRTC. Run godot --import once after installing the extension.

Supported Engine Version
4.3
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
4 hours ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers