🔥Minecraft Server on Repl.it!🔥
h
Scoder12 (876)

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!

  1. If you want to support 1.17 fork this repl. Otherwise, start a new bash repl and in main.sh put bash mc.sh
  2. In the console paste this:
wget -O mc.sh https://xpiredl.scoder12.repl.co/mc.sh

If you get any errors make sure that you typed everything right or try starting from scratch.

Run the repl and follow the instructions!
Once you see Done! in the console, connect to the ip shown in ip.txt. If you don't want the IP to change you can purchase ngrok premium or use a dedicated minecraft host such as PebbleHost
If you have questions ask in the comments!

How to change minecraft version

  1. If you already have a server, delete the files mc/server.jar and mc.sh
  2. Run the command above that starts with wget again
  3. In mc.sh, find the line that says VERSION=1.16.3 and edit it to your desired version

If you get "signal: killed" or "OutOfMemoryError"

You have two options:
1. Buy hacker plan
2. Change the line at the bottom of mc.sh that starts with java to be java -Xmx1G -Xms1G -jar server.jar nogui" to "java -Xmx200M -Xms200M -jar server.jar nogui (thanks @gomgo)

Credits

Huge shoutout to @letsrepl for the initial concept.

Remember to upvote if you enjoyed!

You are viewing a single comment. View All
iPenguin (7)

i can't connect - i keep getting io.netty.channel.abstractchannel$annotatedconnectexceptioon: connection timed out

Scoder12 (876)

@iPenguin weird, what does your IP look like?

iPenguin (7)

@Scoder12 here's an example one: 0.tcp.ngrok.io:12679

Scoder12 (876)

@iPenguin thats completely expected. Are you sure you waited until the server printed out Done! and your internet is fine?

iPenguin (7)

@Scoder12 yeah. i thought it might have been something i messed with in server files, so i tried recreating the server a few times in a new completely new repl but with the same results

iPenguin (7)

@Scoder12 also, the server console never logs that i attempted to join and the motd never appears in the server list

Scoder12 (876)

@iPenguin share the repl with me maybe I can help

Scoder12 (876)

@iPenguin Try running it again, make sure that it prints out "Done" before you join

iPenguin (7)

@Scoder12 just did, doesnt work for me. i could try to get one of my friends to join later today and see if it works for them