Disclaimer: This post uses ngrok as its relay service, simply because I have used it in the past and it’s free for personal use. If you know how to use the service of your choice you should be able to use it, as long as it supports raw tcp sockets.
This step is simple. Go to https://ngrok.com/download and follow Steps 1 to 3. This assumes you know how to open a command prompt on your OS.
You can now come up with a port number you’d like to use. The default port is 3300, which I will use from now on.
In the command prompt run
./ngrok tcp 3300
where 3300 is your port number.
You’ll get to a screen that looks like this:
We only care for the public hostname and port. In my case those are:
0.tcp.ngrok.io and Port
19404 (they may change whenever
restarting, so you’ll have to check every time).
I assume you’ll be using @prastle’s script from here. You can find it here. We have to add modify the last part a bit:
-Ptriplea.server.password=%BOT_PASSWORD%^ -PcustomHost=0.tcp.ngrok.io^ -PcustomPort=19404
at the end of the file.
Now you should be able to host.
Note: You need to keep your ngrok window open as long as you want to host.