promotional bannermobile promotional banner

Plasmo Voice x Cloudflared

This mod adds compatibility between Cloudflared and Plasmo Voice.

Plasmo Voice x Cloudflared

This mod lets you use Plasmo Voice work in worlds hosted with Cloudflared without requiring a server setup.

The problem

Cloudflared tunnels the Minecraft connection, which is TCP. Plasmo Voice sends audio over a separate UDP port, and Cloudflare tunnels can't carry that. Players join fine, but voice never connects ("Can't connect to the UDP server").


How it works

This mod carries Plasmo's UDP packets inside the Minecraft connection itself, so no second tunnel or port forwarding is needed. Plasmo Voice is not modified.

  1. Plasmo's own UDP client is redirected on the joining player's side. Through Plasmo's addon API, the mod wraps the client and points it at a local loopback socket instead of the host.
  2. Each audio packet from that socket is sent to the host as a custom Minecraft packet (cloudflared_pv_compat:udp), through the existing Cloudflared tunnel.
  3. On the host, the mod keeps one local UDP socket per player and forwards the packets to Plasmo's real UDP server. Plasmo sees an ordinary UDP client.
  4. Replies take the same path back to the player.

Plasmo's secrets, keepalives and encryption pass through untouched, because the mod only moves opaque bytes. Proximity, groups and the rest of Plasmo behave as normal.


The host and every player who joins need all of these:

  • Fabric API
  • Plasmo Voice
  • Cloudflared
  • This mod

Open your world to LAN with Cloudflared, share the address, and have friends join with it.

Config

config/cloudflared_pv_compat.properties

bridge Behaviour
auto (default) Bridge only when joined through a Cloudflared address
always Bridge for everyone with the mod
never Never bridge; Plasmo uses normal UDP

Limitations

  • Voice shares one TCP stream with chunk loading and other game traffic. Bursts or a bad connection can delay or stutter voice, which direct UDP would not.
  • The host needs the mod too. Without it, players fall back to plain UDP and voice stays broken.

Credits and Licenses

  • Uses Plasmo Voice's public addon API.
  • Works alongside Cloudflared by Zeith. This mod does not copy, modify or bundle any of Cloudflared's code.

Plasmo Voice x Cloudflared Team

profile avatar
Owner
Forgeborn tier icon
  • 5
    Followers
  • 22
    Projects
  • 168.3K
    Downloads
Donate

More from FyoncleView all