This plugin enables seamless integration of NGROK into Minecraft servers. It provides an efficient method to tunnel your server, making it publicly accessible without requiring direct port forwarding. With NGROK, you can easily share your server with friends or a wider audience while maintaining security and simplicity.
-
Download the Plugin
- Get the latest
ngrokcom-X.Y-SNAPSHOT.jar
from GitHub Releases
- Get the latest
-
Locate Plugins Folder
/path/to/your/server/plugins/
-
Install the Plugin
- Copy the downloaded
ngrokcom-X.Y-SNAPSHOT.jar
into the plugins folder
- Copy the downloaded
-
First-Time Setup
- Start your server
- Wait for plugin files to generate (check console for confirmation)
- Stop the server
-
Configure Plugin
/plugins/NgrokCommunication/config.yml
Edit the below configurations
# Ngrok configuration & credentials
NGROK_SETTINGS:
AUTH_TOKEN: ""
REGION: "US" # IN, AP, AU, EU, JP, SA, US
# The region in which NGROK should host your tunnel. Use the closest to you for good ping.
PORT: 0 # Set to 0 to use the default port of the server.
# Discord IP update messages configuration.
DISCORD_UPDATES:
ENABLED: false
BOT_TOKEN: ""
UPDATE_CHANNEL_ID: ""
UPDATE_MESSAGE: "**Updated Server IP** : %server_ip%"
# DO NOT TOUCH, THIS IS MODIFIED BY THE PLUGIN.
UPDATE_MESSAGE_ID: 0
# Dynu configuration & credentials
DYNU_SETTINGS:
ENABLED: false
DOMAIN: ""
CLIENT_ID: ""
SECRET: ""
- Finalize Setup
- Restart your server
- Check console for successful connection messages
Once NGROK is set up and the Minecraft server is running:
A public IP will be generated and displayed in the server console. Players can use this IP to connect to your Minecraft server, bypassing traditional networking limitations. The plugin also supports Discord integration, providing server status updates or notifications directly to your Discord server.
DynuDNS provides permanent domains that automatically update to point at changing Ngrok IP addresses.
-
Ngrok Assignment
Generates temporary address:
tcp://0.tcp.ngrok.io:12345
(IP:52.31.140.23
) -
DynuDNS Binding
Maintains static domain:
mc.example.dynu.com
→52.31.140.23
-
Player Access
Connect via:
mc.example.dynu.com
- Domain Stability
Single memorable address for players - Automatic Updates
IP changes handled without player intervention - Zero Cost
Free dynamic DNS service tier available
- DynuDNS account
- Register domain of your choice (e.g.,
example.gleeze.com
) in Dynamic DNS Service
- Add DNS Record, set node name as
_minecraft._tcp
; and type toSRV
; and target to same as theaddress of your choice
. Do not touch anything except these parameters, and save it.
- Edit config.yml of NgrokCommunication plugin, obtain client id & secret from your Dynu account.
DYNU_SETTINGS:
ENABLED: true
DOMAIN: "example.gleeze.com"
CLIENT_ID: "your_client_id"
SECRET: "your_secret"
- 🎉 Enjoy your static address! (i.e.,
example.gleeze.com
)