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.
Summary
- In Minecraft, launch a map and initiate the server setup. Click on Open to LAN.
- Note the port number. Example: 25565.
- Open a terminal / cmd, and run the following command (replace 25565 with your port):
ssh -p 443 -R0:localhost:25565 tcp@free.pinggy.io
- This command creates a TCP tunnel and it will output a public URL like
tcp://tljocjkijs.a.pinggy.link:40527. - Your friends can use the endpoint provided by Pinggy
tljocjkijs.a.pinggy.link:40527 to connect to your local game server.
Open your world to LAN
This is the quickest route: any world you are already playing can become a server without downloading anything.
- Launch Minecraft and load the world you want to share.
- Press Esc and click Open to LAN.
- Choose the game mode and whether cheats are allowed, then click Start LAN World.
- Minecraft opens a port for incoming multiplayer connections and prints it in the chat, for example
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).
Start the tunnel
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.
Join the server
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.
Running a dedicated server instead
If you want a server that stays up independently of your game client, use the Minecraft server JAR.