With pinggy.io, you can share your Minecraft server from localhost with just a single command. No port forwarding, no router settings, nothing to install. Replace the port 25565 with the port where your server is running.
ssh -p 443 -R0:localhost:25565 tcp@free.pinggy.io
tcp://tljocjkijs.a.pinggy.link:40527.tljocjkijs.a.pinggy.link:40527 to connect to your local game server.This is the quickest route: any world you are already playing can become a server without downloading anything.
Local game hosted on port 25565. Note that number - it changes every time you reopen the world.Open to LAN is a Java Edition feature. On Bedrock, or if you want the world to stay up after you quit, run a dedicated server instead (see below).
Open a terminal (or cmd on Windows) and run the command below, replacing 25565 with the port from the previous step:
ssh -p 443 -R0:localhost:25565 tcp@free.pinggy.io
Pinggy creates a TCP tunnel and prints a public address like tcp://tljocjkijs.a.pinggy.link:40527.
Your friends open Multiplayer → Direct Connection and enter the host and port from that address, without the tcp:// prefix: tljocjkijs.a.pinggy.link:40527.
Both the world and the tunnel have to stay running. If you close either one, everyone gets disconnected.
If you want a server that stays up independently of your game client, use the Minecraft server JAR.
Download the Minecraft server software:
Setting up the server:
Launch the server:
java -Xmx1024M -Xms1024M -jar server.jar nogui
server.jar with the actual name of your server file if different.Configuring the server:
server.properties file for more advanced configurations. The port it listens on is the server-port value in that file, 25565 by default. That is the port to pass to the tunnel command above.