auto-mcs icon indicating copy to clipboard operation
auto-mcs copied to clipboard

Replace ngrok tunneling

Open macarooni-man opened this issue 9 months ago • 1 comments

With the addition of the data cap to ngrok's free tier, it makes it challenging to use as a permanent solution for tunneling. Currently, we're looking to replace ngrok with playit.gg as it supports 4 concurrent tunnels with both TCP and UDP, allowing for tunneling a Geyser configuration as well. The following will need to be considered during the replacement:

  • [ ] Refactor all the code and variable names that explicitly mention ngrok
  • [ ] Upon the replacement, notify users with the ngrok executable installed that it's no longer supported and present them with the option to replace it
  • [ ] Modify auto-mcs.ini files to replace enableNgrok with a brand-agnostic name such as useTunneling and add a condition in the code to replace that variable in memory to prevent errors with importing legacy servers
  • [ ] Figure out a way to detect the presence of the alternative, and if the alternative supports a backend web request like ngrok's config page to grab the IP addresses
  • [ ] Figure out a way to automate the initiation and closure of a tunnel with a specific port and protocol similar to the ngrok CLI method
  • [ ] Edit the Server Manager panel to show the Local IP, public IP, and Bedrock IP when hovering over it for a second instead of right clicking for that info

macarooni-man avatar May 10 '24 19:05 macarooni-man