Preface:
I am not the author of this mod and do not claim to be its authorship.
The author of this mod: Gaming32
I just ported it, for ease of use in builds created in the Curse Forge launcher.
Host your singleplayer worlds without having to run a server or setup port forwarding!
If your friend doesn't have the mod installed, you cannot use the friends system with them. However, you can run the command /worldhost ip to get an IP that can be used with tunneling. Do note, however, that not using the friends system could increase ping. If you don't want the ping increase, you can run /worldhost tempip to get a temporary server IP that lasts for at least 60 seconds. Clients who connect within the 60 seconds will remain connected. If you plan to never use the friends system, you can disable it in the mod settings.
This mod has a server that your client connects to, this server is used to communicate with other clients using World Host.
/worldhost tempip tries to do UPnP first instead of just giving you the proxy IP straightaway.