Skip to content
← Back to Community
Minecraft Java 1.16.4 server running entirely on repl.it
Profile icon
UniqueOstrich18

I made a python script that installs a Minecraft server on repl.it. It includes a Flask server that can be used to check the latest IP address of the server, since it uses ngrok. All you have to do to set it up is to fork the repl and run it.

To join a server created using this method, simply go to the repl's web server url, copy the IP, and join the server in the latest version of Minecraft (1.16.4). A demo is available at https://Minecraft-Server.uniqueostrich18.repl.co.

How to set up:

  1. Create a ngrok account at https://ngrok.com/ and copy your api key.
  2. Fork this repl: https://repl.it/@UniqueOstrich18/Minecraft-Server-fork-this#run.py
  3. Run it and follow the prompts

Notes:

  • It will be very laggy. This isn't supposed to be playable, just a proof of concept.
  • When you put your ngrok token in token.txt, it get deleted the next time you run the program.
  • This script isn't perfect, so if anyone has any suggestions on how to improve it, tell me in the comments.
  • Non hacker accounts will not work hosting the server, since there is not enough memory.
  • Web server is marked "insecure" by chrome, just click "visit this unsafe site"

edit: got 2 upvotes in an hour this is a record

Voters
Profile icon
wertiop1
Profile icon
JeremyHetrick
Profile icon
MrNoodle1
Profile icon
1010saf
Profile icon
KohenCarlson
Profile icon
sojs
Profile icon
vanser745
Profile icon
EliasSanderson
Profile icon
toivocat
Profile icon
BriannaStrange
Comments
hotnewtop
Profile icon
Zmon

FIX THE EXIT STATUS 1 PLEASE

Profile icon
UniqueOstrich18

@Zmon You need hacker plan or else the repl will just run out of memory.
Also you should read the error message. If it tells you you need a token, you need to follow the instructions in the post.

Profile icon
Zmon
Profile icon
toivocat

THIS IS EPIC! :)

Profile icon
ShadowXPlayzYT

BRUH IT SAYING EXIt STATUS 1 pls do somethinge

Profile icon
wertiop1
Profile icon
navillion

epic

Profile icon
Kingq23

where is the java version

Profile icon
hachimagic

cool very cool

Profile icon
nathanmachane

How would I do this for bedrock?

Profile icon
UniqueOstrich18

@nathanmachane You could probably adapt this using something like pocketmine

Profile icon
nathanmachane

@UniqueOstrich18 the problem is that ngrok doesn't support UDP, which bedrock uses.

Profile icon
Whippingdot

You wish that was a record. I also have gotten two/three upvotes in an hour. But that is because I always tell everyone who worked with me to check out the post when I share it.

Profile icon
WilliamSexton2

Screenshot 2021-01-15 at 8.35.01 PM Is this what is supposed to happen?

Profile icon
WilliamSexton2
Profile icon
WilliamSexton2

@WilliamSexton2 how do I fix

Profile icon
Whippingdot

Umm read the post instructions. You have to create an account somewhere, you have to enter that account's API key, in a forked repl, then you have to run it. @WilliamSexton2

Profile icon
UniqueOstrich18

@WilliamSexton2 You have to sign up for an ngrok account and put the token in token.txt. It clearly says that in the instructions.

Profile icon
WilliamSexton2

@UniqueOstrich18 Ok I will go get one

Profile icon
Zmon

@UniqueOstrich18 what token

Profile icon
jort57

Cool!