Gate Connect Integration
Gate Connect is a powerful network service that makes your Minecraft proxy universally accessible to players worldwide without requiring port forwarding or a public IP address. It’s an ideal solution for:- Home servers without public IP addresses
- Development environments for testing
- Load-balanced deployments across multiple Gate instances
- Dynamic infrastructure where IPs frequently change
How Gate Connect Works
Gate Connect acts as a bridge between your locally hosted proxy and the global Minecraft community: When enabled, Gate registers itself with the Connect network and receives a free domain:<your-endpoint-name>.play.minekube.net. Players can then connect from anywhere without you needing to configure port forwarding.
Quick Setup
Step 1: Enable Connect
Add the Connect configuration to yourconfig.yml:
config.yml
Step 2: Configure Authentication
You have two options for obtaining a Connect token:Option A: Auto-Generate Token (Easiest)
Simply start Gate with the endpoint name configured. If the name isn’t taken, a token will be auto-generated:connect.json file with your token.
Option B: Use Connect Dashboard
- Visit the Connect Dashboard
- Create a new endpoint with your chosen name
- Copy the generated token
- Create a
connect.jsonfile:
connect.json
Step 3: Verify Connection
Once Gate starts, you should see log messages confirming Connect registration:my-awesome-server.play.minekube.net!
Advanced Configuration
Offline Mode Support
Gate Connect supports offline mode (cracked) players, allowing non-premium Minecraft accounts to join:config.yml
Authentication Flow: When
allowOfflineModePlayers: true is set, Connect handles connection injection in offline mode while Gate’s onlineMode: true still authenticates premium players joining directly. This provides the best of both worlds.Load Balancing with Connect
One of Connect’s most powerful features is built-in load balancing across multiple Gate instances. Multiple Gate proxies can share the same endpoint name:- Configure first Gate instance with Connect enabled
- Copy the generated
connect.jsontoken file from the first instance - Deploy additional Gate instances with:
- Same
connect.namein configuration - Same
connect.jsontoken file
- Same
- Automatic distribution of player connections
- Zero-downtime deployments (rolling updates)
- Horizontal scaling based on player load
- Built-in redundancy and failover
High-Availability Deployment
Combine Connect with Kubernetes for a production-grade, highly available setup:deployment.yaml
- replicas: 3 - Run three Gate instances for redundancy
- Connect token - Stored securely in Kubernetes Secret
- Shared endpoint - All instances use same Connect endpoint name
- Auto-recovery - Kubernetes restarts failed instances automatically
Troubleshooting
Authentication Errors
Symptom: “Invalid signature for profile public key” Solutions:Force Endpoint Refresh
Change your endpoint name temporarily to clear Connect’s cache:Restart Gate, then change back to original name.
Chat Disabled Error
Symptom: “Chat disabled due to missing profile public key” Solution: Setenforce-secure-profile=false in backend server’s server.properties
Configuration Changes Not Applied
Symptoms: Offline players still can’t join after enablingallowOfflineModePlayers
Solutions:
- Wait 2-3 minutes - Connect network needs time to propagate changes
- Restart Gate - Force re-registration with new settings
- Change endpoint name - Force fresh registration if caching persists
Connection Issues
Players can't connect to .play.minekube.net domain
Players can't connect to .play.minekube.net domain
Check:
- Gate logs show successful Connect registration
- Endpoint name is valid (alphanumeric, hyphens only)
- Token is correct in
connect.jsonorCONNECT_TOKENenv var - Firewall allows Gate to make outbound connections
Load balancing not working across instances
Load balancing not working across instances
Verify:
- All instances use identical endpoint name
- All instances share same
connect.jsontoken file - All instances successfully registered (check logs)
- Instances are actually running and accepting connections
Endpoint name already in use
Endpoint name already in use
Solutions:
- Choose a different, unique endpoint name
- If you own the endpoint, use the token from Connect Dashboard
- Contact support if you believe the name is wrongly taken
Monitoring and Metrics
Monitor Connect status through Gate’s logging:- Frequent reconnection messages (may indicate network issues)
- Registration failures (check token validity)
- Endpoint conflicts (name already in use)
Best Practices
Use Descriptive Names
Choose memorable endpoint names that represent your server brand:
awesome-survival.play.minekube.net✅server1.play.minekube.net❌
Secure Your Token
Treat Connect tokens like passwords:
- Store in environment variables or secrets managers
- Don’t commit
connect.jsonto version control - Rotate tokens if exposed
Test Offline Mode
Before production, verify offline mode configuration:
- Test with both premium and cracked accounts
- Confirm chat and gameplay work correctly
- Check authentication flow logs
Monitor Connections
Track Connect health and player distribution:
- Enable debug logging during initial setup
- Monitor reconnection frequency
- Track which Gate instances receive connections
Migration from Direct Connections
Transitioning from traditional port forwarding to Connect:Enable Connect Alongside Direct Access
Keep your existing port forwarding active while testing Connect.
Getting Help
If you encounter issues not covered in this guide:- Check logs - Both Gate and backend server logs contain valuable debugging info
- Community support - Join the Gate Discord for real-time help
- GitHub issues - Report bugs with logs and reproduction steps on Gate repository
- Connect docs - Visit Connect documentation for network-specific information
Related Resources
Load Balancing
Learn about load balancing strategies across Gate instances
Failover Configuration
Configure failover mechanisms for high availability
Connect Network
Official Connect network documentation
Kubernetes Deployment
Deploy Gate on Kubernetes for production

