
Engrok is a server-side mod for dedicated servers which opens an Ngrok tunnel automatically once the server starts. There's an integration for GitHub Gists which uploads the Ngrok tunnel IP to a GitHub Gist (an existing one or a new one, depending on the mod's config - if there isn't an existing one, a new one will be created and saved to the config file automatically) so users can either retreive the IP from the Gist directly, or, using the mod Ever Changing on their clients to automatically retrieve it for them.
For the mod to create a config file you can modify you need to run the server with the mod loaded first. Then make sure to stop the server, then head to the folder "config" and open the file "engrok.json5" with a text editor. The config'll probably look like this at the beginning:
{
"enabled": true,
"ngrokAuthToken": "",
"regionSelect": "AUTO",
"gitHubAuthToken": "",
"gistId": ""
}
Settings » Developer Settings » Personal access tokens » Tokens (classic) and press Generate new token, then Generate new token (classic). Then set Expiration to No expiration (or shorter, if you'd like), and under the Select scopes list make sure gist is ticked/enabled, then press Generate Token. Make sure to copy the token, because you'll need to regenerate a new one if you don't, then copy it into the config file./engrok
This command essentially manipulates the config file. Leaving any of these commands without their parameters will empty the config from them and leave a blank "".
/engrok setNgrokAuth <token> - Sets the Ngrok Authentication Token in the config file./engrok setGitHubAuth <token> - Sets the GitHub Authentication Token in the config file./engrok setGistId <id> - Sets the Gist ID in the config file./tunnel
This command controls the Ngrok tunnel.
/tunnel open - Opens the tunnel if it's closed/tunnel close - Closes the tunnel if it's open./tunnel status - Tells you wether the tunnel is open or close and its IP address if it's open./gist
Displays data relating to the gist.
/gist getIp - Provides you with the IP of the tunnel as shown in the gist online, to make sure it is updated to be like the actual tunnel address you can see using /tunnel status./gist getUrl - Provides you with the url of the gist, which you can share with friends to use with the Ever Changing mod (More on that soon) to automatically receive the IP every time it changes.This mod is inspired by Ngrok LAN by Alujjdnd and a big chunk of this mod's code has been taken from Ngrok LAN. Please keep in mind this mod was made in about 12 hours so it may not work perfectly, but I did my best to patch everything, so please do not try to intentionally break things.