How to run a minecraft server on repl.it
Hey guys today I'm going to show you how to run a minecraft server on repl.it.
Note: You need hacker plan for this to work right now!
Installation is super simple!
- Start a new bash repl
- In the console paste this:
- In main.sh, paste this:
Run the repl and follow the instructions!
Once you see
Done! in the console, connect to the ip shown in ip.txt
If you have questions ask in the comments!
Huge shoutout to @letsrepl for the initial concept.
Remember to upvote if you enjoyed!
i can't connect - i keep getting io.netty.channel.abstractchannel$annotatedconnectexceptioon: connection timed out
php -S 0.0.0.0:3000 ip.txt & bash mc.sh in
main.sh, instead of just
bash mc.sh. This automatically sets up a website for it, making it easier to use with uptime robot.
Once this is setup, go to uptime robot and create a keyword monitor that checks every 5 minutes for the keywords "Server running on". That way the server will stay up all the time.
Don't forget to put the
ngrok_region values in your
Hey, any way to keep the server alive? The server closes very quickly even with hacker plan, I even lost ~5min of progress (autosave).
I wasn't able to listen to port 8080 & host the mc server at the same time as the http server would close as soon as the mc server started.
Any suggestions or plans?
Unrelated: Inside of your server.properties, I'd recommend setting
sync-chunk-writes=false to improve performance &
enable-rcon=false as rcon is not being used.
Do you have to run this file on the same computer that you play minecraft on? And is it a different IP address each time you run it, so that you can make multiple servers?
Other than those questions, I think this is totally, completely awesome!!!!!!!
For some reason, it keeps saying that I need to put ngrok_token in my .env file even though it's already there.
When I run bash mc.sh from the console is comes with the previous error, if I run it from the main.sh on start it comes with a new message:
Environment variable ngrok_region not set. In your .env file, add a line with: ngrok_region= and then right after the = add your region, one of: us - United States (Ohio) eu - Europe (Frankfurt) ap - Asia/Pacific (Singapore) au - Australia (Sydney) sa - South America (Sao Paulo) jp - Japan (Tokyo) in - India (Mumbai)
Showing me this in the site:
"Hmmmm.... We Couldn't Reach Your Repl
Make sure your repl has a port open and is ready to receive HTTP traffic."