Skip to content
← Back to Community
Host A Minecraft Server on Repl.it!
Profile icon
Indigos1st

Host A Minecraft Server on Repl.it!

note: the free plan has 500mb ram which is not enough for a minecraft server

In this tutorial we will be leaning how to create a Minecraft Java server hosted on repl.it.

Many people have wanted a Minecraft server before but they don't want to play expensive fees to host one. In this tutorial I will be showing you how to create a Minecraft server in repl.it for free.

You will need

  1. a repl.it account
  2. hacker plan (optional if you want your server to be on 24/7)

How to do it

  1. first fork the project
  2. run the project
  3. It will ask for an ngrok token
  4. to find your ngrok token click here
  5. you may have to create an account if you haven't already
  6. you ngrok token will be the text covered in red in this image DO NOT SHARE YOUR NGROK TOKEN WITH ANYONE
  7. follow the steps in the terminal when running the program

How to join the server

  1. load minecraft
  2. click multiplayer
  3. enter the ip from ip.txt
  4. enjoy the world

How to update the server to the latest version

  1. go to https://www.minecraft.net/en-us/download/server/
  2. click the button as shown in this image
  3. replace the server.jar file on the repl.it project with the server.jar file you created
  4. your Minecraft Server is now updated and ready.

Host the server 24/7
sorry but this is for people with the repl.it hacker plan. If you have it great! all you have to do is click the always on button in the repl.it project.

Voters
Profile icon
ernestoyoofi
Profile icon
KhalilDock
Profile icon
MarkLeonchik
Profile icon
FrederickTT
Profile icon
ProamgelsAngel
Profile icon
vibezex
Profile icon
Hey555444
Profile icon
PROxxHCFHD
Profile icon
Patryk11
Profile icon
PRANAVDSR
Comments
hotnewtop
Profile icon
CoolGuy27

@Indigos1st I when I run the repl, it says this in console and then nothing happens, what should I do? (Ip.txt just says minecraft server starting, please wait)
Capture

Profile icon
Opstober

@CoolGuy27 yeah i have the same problem

Profile icon
CoolGuy27

@HuyVietnamese okay so I figured out I just had to redo the whole process and try posting my ngrok token in several times and then it worked

Profile icon
BrianUllery

@CoolGuy27 could you further explain? I can't get it to work no matter how many times I paste the token into the env variable.

Profile icon
CoolGuy27

@BrianUllery IDK how I got it to work, but what I did was make another fork and try again, also It will most likely not work if you have the free plan because it uses up more than 500MB of ram, which is all the free plan has. If you want to host a free server I would use aternos, as they have free servers and are fairly simple with the possibility of plugins being added.

Profile icon
aanyakul

I can't seem to find the ip in the ip.txt file. It just says "Minecraft server starting, please wait" but I'm not sure it's supposed to say that.

Profile icon
annyDeveloper
Profile icon
IntellectualGuy

Private Repl

Profile icon
Indigos1st
Profile icon
[deleted]
Profile icon
BiancaJoacinthe

or find my account and text me

Profile icon
BiancaJoacinthe

sup i hope u enjoy the server have fun if it dont work go to the link in my bio

Profile icon
RafGaming1

 bash main.sh
Starting ngrok tunnel in region ap
Authtoken saved to configuration file: /home/runner/.ngrok2/ngrok.yml

e

it stucked her

Profile icon
RafGaming1

hello what is the .env file he means in the console

Profile icon
Hdjjsjajakqwkkdfnxnskakqlql

@RafGaming1 go to settings and secrets, put token in value

Profile icon
RafGaming1

@Hdjjsjajakqwkkdfnxnskakqlql
last question , why the ip not showing

Profile icon
STICKMANRULEZ

it says Minecraft server starting, please wait
in ip.txt
what do i do?

Profile icon
followrel

It doesn't shows my ip

Profile icon
J-Diemer-Studios

Can I upload my own Minecraft world to this server?

Profile icon
Indigos1st

@J-Diemer-Studios it should work if you replace the files "world", "world_nether" and "world_end"

Profile icon
J-Diemer-Studios
Profile icon
SachsTheBased

The server starting up does not seem to be working

Profile icon
JamalSharabati

Where can I find the ip for the server ?

Profile icon
Indigos1st

@JamalSharabati you need ngrok and just your ip should be in the ip.txt file

Profile icon
firststef

i updated the minecraft server version and added java 17 here:
https://replit.com/@firststef/Minecraft-Server-On-Replit-updated

Profile icon
Indigos1st

@firststef cool nice work

Profile icon
ChristopherHoug

hello

Profile icon
Indigos1st
Profile icon
ChristopherHoug
Profile icon
LeGamer4

i cant go in my server

ist show cant connect to the server

Profile icon
hangyeol1

Where should I add the ngrok_token ?

Profile icon
Indigos1st

@hangyeol1 when you start up the project

Profile icon
MysterySoulYT
Profile icon
AustinSchibell

@Indigos1st
could you please be more specific

Profile icon
starstriker

@Indigos1st
it says to put it in a .env file but repl says those are disables and i trued putting it in the .env sidebar, doesnt work
Screenshot 2022-01-13 7.58.29 AM

Profile icon
starstriker

nvm, got it, didnt know i had to do this, i was going through advanced
image

Profile icon
mhamadhamada124

Failed to download vanilla jar
javax.net.ssl.SSLProtocolException: Received close_notify during handshake
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:129)
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:356)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:312)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:303)
at java.base/sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:250)
at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:202)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:171)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1497)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1403)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:441)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:412)
at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:574)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1653)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1577)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at java.base/java.net.URL.openStream(URL.java:1167)
at io.papermc.paperclip.Paperclip.checkVanillaJar(Paperclip.java:191)
at io.papermc.paperclip.Paperclip.checkPaperJar(Paperclip.java:122)
at io.papermc.paperclip.Paperclip.setupEnv(Paperclip.java:95)
at io.papermc.paperclip.Paperclip.main(Paperclip.java:49)

Profile icon
Arrows12

how to add custom domain

Profile icon
start8417

How to use commands?

Profile icon
Evo-Pro

It says "Can't keep up! Is the server overloaded? Running 2829ms or 56 ticks behind"

Profile icon
SaiSaaketh11

error status 137 i am getting this error when i run it

Profile icon
Gimmieurdata
Profile icon
Indigos1st

@SaiSaaketh11 that means you are out of ram, this is unfortunate because repl only gives 500mb ram on the free plan, to have a decent experience you may want to upgrade or pay for a service dedicated to hosting minecraft which is what i recommended.

Profile icon
s1f2z3

TY