Run the repl and follow the instructions.
If you get any errors make sure that you typed everything right or try starting from scratch. Otherwise, comment and I may be able to help you.
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
If you already have a server, delete the files mc/server.jar and mc.sh
Run the command above that starts with wget again
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:
Buy hacker plan
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)
Consider putting 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_token and ngrok_region values in your .env!
@mesquite2234 yes, you could do this on any VPS. Here is a tutorial. The one thing I would do differently from that tutorial is using a high-performance jar from https://papermc.io instead of the vanilla jar.
@mesquite2234 well if its not my code then you can google an ip finder service for the commandline, get your server's IP, and if your azure VM doesn't have any firewalls interfering with it you should be able to connect
🔥Minecraft Server on Repl.it!🔥
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.
Installation is super simple!
If you get any errors make sure that you typed everything right or try starting from scratch. Otherwise, comment and I may be able to help you.
Once you see
Done!
in the console, connect to the ip shown inip.txt
. If you don't want the IP to change you can purchase ngrok premium or use a dedicated minecraft host such as PebbleHostIf you have questions ask in the comments!
How to change minecraft version
mc/server.jar
andmc.sh
wget
againmc.sh
, find the line that saysVERSION=1.16.3
and edit it to your desired versionIf you get "signal: killed" or "OutOfMemoryError"
You have two options:
mc.sh
that starts withjava
to bejava -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!
Consider putting
php -S 0.0.0.0:3000 ip.txt & bash mc.sh
inmain.sh
, instead of justbash 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_token
andngrok_region
values in your.env
!Edit: sorry for the unclear question, I meant to say how would I replace the ngrok thing with a VM
ip.txt
how to use this?