e4mc Voice Compat

Voice chat finally goes through the e4mc tunnel.

  • Version 1.0.0
  • Fabric 1.20.5 – 26.3
  • CurseForge downloads
  • Modrinth: under review
Role
Game Designer & Developer
Duration
2 weeks
Year
2026
Status
Maintained
Type
Development · Open source
e4mc Voice Compat

Context

e4mc opens a LAN world to the internet by routing the Minecraft connection through a relay. Simple Voice Chat sends audio over a separate UDP port that e4mc doesn't forward, so players who join through e4mc can play normally, but their voice chat stays disconnected. This Fabric mod carries the voice packets inside the Minecraft connection, so they go through the same tunnel as the rest of the game.

2
e4mc connection modes supported (relay and Dialtone)
3
mixins only, everything else goes through the public API
0
settings to configure

Approach

  1. Detecting how a player connected

    When a player joins, the host checks how they got in: a QUIC stream for the e4mc relay, a Dialtone channel for peer-to-peer, a regular socket for a direct connection. Only players who came through e4mc are tunneled. The host and players on the local network keep the usual UDP.

  2. One socket for both cases

    On the host side, the mod gives Simple Voice Chat a socket that handles UDP for direct players and a virtual address for each tunneled player. Packets stay encrypted by Simple Voice Chat and are handled on the network thread, without waiting for a server tick.

  3. A failure that explains itself

    A player who joins through e4mc without the mod can still play, and gets a chat message explaining why their voice isn't getting through. Host and client logs spell out each step for troubleshooting.

Preview