World Host
Host your singleplayer worlds without the need to set up a server or configure port forwarding! In the future, we also plan to add support for Bedrock Edition clients via Geyser.
What if my friend doesn't have the mod?
If your friend doesn't have this mod installed, you won't be able to use the friends system. However, you can execute the /worldhost ip command to get an IP address for connection through tunneling. Note that using this method may increase ping. If you want to avoid ping increase, run /worldhost tempip to get a temporary server IP address that lasts for at least 60 seconds. Clients that connect within this time will remain connected. If you don't plan to use the friends system, you can disable it in the mod settings.
How does this mod work?
The mod uses a server that your client connects to. This server facilitates communication between clients with World Host installed.
- When your friend wants to join you, their client requests an IP address for connection from the server.
- The server asks your client to create a connection mode (called
JoinTypein the protocol). There are two modes available: UPnP and Proxy. - UPnP mode is tried first. Your client attempts to open a temporary port forward in your router so your friend's client can connect to you directly.
- If UPnP is successful, your client tells the server the port number, after which the server gives your friend's client your IP and port number.
- If UPnP fails, your client asks the server to use Proxy mode. The server will then give your friend's client the same "proxy IP" as the
/worldhost ipcommand.
The /worldhost tempip command first tries to use UPnP instead of immediately providing the proxy IP.
License
The mod is open source and distributed under the MIT license.