Description
Changelog
Reviews (0)

This plugin allows you to establish peer-to-peer multiplayer connections in Godot without relying on a centralized server, leveraging the power of Iroh.

Starting a Server

To start a server and set it as the multiplayer peer:

var server := IrohServer.start() multiplayer.multiplayer_peer = server

You can retrieve the connection string (used to connect to this server) using:

server.connection_string()

After initializing the peer, you can use the High-level multiplayer of Godot as normal.

Connecting as a Client

To connect to an existing server using the connection string:

var client = IrohClient.network_connect("CONNECTION_STRING") multiplayer.multiplayer_peer = client

Replace "CONNECTION_STRING" with the string provided by the client acting as the server.

After initializing the peer, you can use the High-level multiplayer as normal.

Handle Client Errors

To handle connection failures on the client side, you can connect to the connection_failed signal and get the error message with the connection_error function:

multiplayer.connection_failed.connect(func(): print("Connection error: ", client.connection_error()))

This allows you to gracefully handle cases where the client cannot connect to the server.

Changelog for version v0.2.0

2026-10-28 09:23:09

No changelog provided for this version.

Reviews

Godot Iroh has no reviews yet.

Login to write a review.

Consider supporting the creators!

If you enjoyed this asset consider supporting its creator. Follow the link below.