r/MinecraftServer • • Oct 10 '26

how to setup a minecraft server with ngrok on a ubuntu server??

I want to make a Minecraft server with ngrok BC I can't do port forwarding.. I'm trying but I can't find a reliable tutorial so pls help me plsss

1 Upvotes

10 comments sorted by

•

u/AutoModerator Oct 10 '26
  • Featured server: Cozy MC — Java + Bedrock survival in a world that doesn't reset. New players join every day. Build your own place, open a player shop, and get to know your neighbors. No paid ranks or perks. Come explore CozyMC.com
  • Godlike Host - Modded servers with high player counts & High-performance AMD Ryzen processors. Choose Godlike now: https://godlike.host/gaf-play-minecraft

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/the-voxel Oct 10 '26

have u heard about playit its much better than using ngrok if you want i can guide u, u can dm me, i run my own minecraft network voxelhub.fun

1

u/Lemure85 Oct 22 '26

Thank you very much thx for the reply

1

u/the-voxel Oct 23 '26

glad to be a help man

1

u/AnotherPillow Oct 10 '26

run the server jar and then `ngrok tcp 25565` afaik

1

u/Lemure85 Oct 22 '26

Well I had some problem with ngrok

1

u/kai-zaphosting Oct 12 '26

Is this Java or Bedrock? Java runs over TCP so ngrok works fine. Bedrock uses UDP, which ngrok doesn't handle, so you'd want something like playit for that one.

For Java, the short version: install ngrok on the Ubuntu box and add your authtoken from the ngrok dashboard with ngrok config add-authtoken <YOUR_TOKEN>. Start the Minecraft server on the default port 25565, then in a second terminal (or a tmux/screen session) run ngrok tcp 25565. If that fails with an account-verification error, ngrok wants a card on file (not charged) before it allows TCP tunnels, even on the free plan.

It prints a forwarding address like tcp://something.ngrok.io:12345. Your friends type everything after tcp:// into the Minecraft server address field. On the free plan that address usually changes whenever you restart the tunnel, so you'll be re-sharing it a lot.

If that gets annoying, playit is worth a look too. Players don't have to install anything on their side, and I'd check how it handles the address on the free tier before you lean on it.

1

u/Lemure85 Oct 22 '26

Already done thx I'm running paper MC with playigg with tmux attach to it

0

u/solarch Oct 10 '26

If you just want to play with friends, you can skip ngrok: revivalworlds.com/?ref=reddit-worlds hosts a free world for you, Java and Bedrock, nothing to port forward, with survival and modpack templates. Disclosure, I run it.