HomeJavaModsTunnely-P2P
Tunnely-P2P

Tunnely P2P - Direct Peer-to-Peer Multiplayer

⚠️ Important: Read Before Installing

Most users should use regular Tunnely instead of this P2P version.

Tunnely P2P requires either port forwarding OR compatible NAT types between both players. Many routers and ISPs use restrictive NAT configurations (Symmetric NAT, Carrier-Grade NAT) that prevent direct peer-to-peer connections from working, which means you'll still need to port forward.

Use regular Tunnely if:

Only use Tunnely P2P if:


Which Tunnely is Right for You?

There are two versions of Tunnely designed for different use cases:

🔗 Tunnely P2P (This Mod - You're Here!)

Best for: Private gaming sessions, direct connections, maximum privacy

Key Features:

How It Works:

  1. Host generates a connection token
  2. Host shares token with friends (copy/paste, Discord, etc.)
  3. Friends use token to connect directly
  4. No servers, no accounts, no middleman

Perfect For:

Limitations:


🌐 Tunnely (Alternative Version)

Best for: Public servers, communities, modpacks, server discovery

Key Features:

How It Works:

  1. Create account (email + password)
  2. Host server with chosen visibility mode
  3. Friends find server in browser OR receive invite
  4. Relay infrastructure handles all networking

Perfect For:

Trade-offs:


Side-by-Side Comparison

Feature Tunnely P2P Tunnely
Account Required ❌ No ✅ Yes (email + password)
Port Forwarding ⚠️ May be needed ❌ Not required
Privacy 🟢 Maximum (no data collection) 🟡 High (minimal data)
Latency 🟢 Direct (lowest possible) 🟡 +20-50ms (mesh optimized)
Setup Complexity 🟢 Very Simple (token only) 🟡 Simple (account creation)
Server Discovery ❌ No ✅ Public browser + friends list
Social Features ❌ No ✅ Friends, invites, online status
Max Players ⚠️ Depends on host bandwidth ✅ Up to 20 (increased limit)
Infrastructure ❌ None needed ✅ Relay servers (free)
Self-Hostable ✅ N/A (fully P2P) ✅ Yes (optional)
Voice Chat Support ⚠️ Limited ✅ Full multi-port forwarding
Bandwidth Compression ❌ No ✅ Yes (50-80% savings)
Works Behind NAT ⚠️ Compatible NAT required ✅ Always works
Data Collection ❌ None ⚠️ Minimal (email, server name)
Open Source ✅ Yes ✅ Yes

When to Choose Tunnely P2P

Choose Tunnely P2P if you:


When to Choose Tunnely

Choose Tunnely if you:


Can I Use Both?

Yes! Both mods can coexist:


Getting Started with Tunnely P2P

Installation

  1. Install Architectury API (required dependency)
  2. Install Tunnely P2P - Download from Modrinth, place in mods/ folder
  3. Launch Minecraft 1.20.1

Hosting

Option 1: In-Game GUI

Option 2: Commands

/tunnel create           # Generate connection token
/tunnel token            # Display current token
/tunnel status           # View connection status
/tunnel stop             # Stop hosting

Joining

  1. Receive connection token from host
  2. Use command: /tunnel connect <token>
  3. Or open multiplayer screen and connect to 127.0.0.1:25999

That's it! No accounts, no configuration, no hassle.


Switching to Tunnely (Full Version)

Want the server browser, social features, and relay infrastructure?

Download Tunnely

Quick Setup

  1. Install Tunnely (can keep P2P installed alongside)
  2. Press U key in-game to open menu
  3. Click Login/Register to create account
  4. Start hosting with Host Game button
  5. Choose visibility mode and start!

Features You'll Get


Technical Details

Tunnely P2P Architecture

┌─────────────┐                    ┌─────────────┐
│   Host PC   │ ← Direct P2P  →  │  Client PC  │
│ (generates  │   Connection      │  (uses      │
│   token)    │   (encrypted)     │   token)    │
└─────────────┘                    └─────────────┘

Security:

Tunnely Architecture

┌───────────┐    WSS/GZIP    ┌──────────────┐    Mesh     ┌──────────────┐
│ Host PC   │───────────────→│  Relay NA    │◄──────────→│  Relay EU    │
└───────────┘  Encrypted     └──────────────┘  Routing    └──────────────┘
                                    ↓                            ↓
                             ┌──────────────┐            ┌──────────────┐
                             │ Supabase DB  │            │  Client PC   │
                             └──────────────┘            └──────────────┘

Security:


Support & Resources

Tunnely P2P (This Mod)

Tunnely (Full Version)


FAQ

Q: Do I need both mods? A: No, choose one based on your needs. They can coexist if you want both options.

Q: Which is more secure? A: Both are secure. P2P has no data collection, Tunnely has minimal data (email, server name). P2P has no relay servers, Tunnely encrypts all relay traffic.

Q: Can P2P friends join Tunnely servers? A: No, they're separate systems. P2P uses tokens, Tunnely uses database-backed endpoints.

Q: Is Tunnely P2P really free? A: Yes, 100% free with zero infrastructure costs. No servers, no subscriptions.

Q: Is Tunnely free? A: Yes, free to use with public relay servers. Optional Ko-fi donations help maintain infrastructure. Fully self-hostable if you prefer.

Q: Which has lower latency? A: P2P has direct connections (lowest possible). Tunnely adds 20-50ms but optimizes multi-region connections via mesh routing.

Q: Do joining players need the mod? A: Neither version requires joining players to install the mod (host only).

Q: Can I switch between them? A: Yes, they're separate mods. Install one or both as needed.


Conclusion

Choose Tunnely P2P if you want:

Choose Tunnely if you want:

Both are free, open-source, and built for the community!


Made with ❤️ for the Minecraft community

Try Tunnely (full version): https://modrinth.com/mod/tunnely

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more