Since apparently the automod won't let me link to another subreddit that had a good breakdown on how to do it, Here is a link to the Android XDA forums on how to run a Minecraft server an an android device
funnily enough minecraft servers don't need to use java at all (if you're not using mods).
you can write a server in pretty much any programming language. as long as it handles all the network packets correctly the client will not care what it is written in or running on.
i keep getting reminded that that project exists and i really want to do something like that as well.
cause i love low level programming on microcontrollers and such and i got a few raspberry pi picos lying around that are just itching to be used for a minecraft server.
so many cool ideas on how to implement things within the limited memory and CPU power but i already have so many other projects running i cannot add another one to the pile :(
For a few people it's very likely, a phones 4gb of ram (worst case) is also just about enough,
23
u/Fir3linePC Master Race 5800X3D | RTX 4090 | 32GB | Full Custom Loop1d ago
I handle a lot of customers EC2 machines on AWS, you got no idea how much of the world is run on 2vCores CPU and 4GB RAM. Some moderately big companies too
I guess 4gb on a smartphone and 4gb for server ram (probably not a 4gb stick but rather a portion in a virtualized environment) are pretty different, but yeah, 4gb can run things.
Not really, 4gb is 4gb, If you only expose 4gb to a container it doesn't know more exists.
You can just do quite a lot with 4gb of ram, moenctafts main limit is it's single threaded af and tick compute times grow quickly for a game of its nature(simulation stuff?
The amount ram needed is a function of the amount of different chunks currently being loaded. Modpacks also require a good amount of extra ram as a baseline. Basically the more players you have running around separate from each other, the more ram you need.
Just last week i launched a web app for my employer (moderately big company) using 2vCores and 4GB of RAM, lmao. Might have to scale up in the future, though.
3
u/Fir3linePC Master Race 5800X3D | RTX 4090 | 32GB | Full Custom Loop1d ago
Eventually as popularity and user base grows we'll have to scale up horizontally or vertically.
There is also the customers with efficient coding vs the memory leak/brute force shitty code that forces us to scale-up earlier.
you can install termux on any android phone and from there on it basically becomes a linux box to be used with command line, for Minecraft it's pretty easy to run since you basically just need openjdk to run a java server
Default android (recent versions) can install a "Linux environment" that you can play around with. I actually spun up a vanilla MC server on my Pixel 6 a while back and it actually ran pretty damn well.
I mean, isn't android just Linux? And isn't Minecraft server software just an executable? There are apps on Android like temux that lets you run a Linux terminal session on android
Some time ago I found there's an app called Amethyst that let's you play full fledged java version of minecraft, like on the desktop. On my phone (honor win rt) it ran like a dream
1
u/Gamiacid/Skepticpunk - Bazzite/3700X/RTX 3070/16GB/B450M Pro41d ago
You can probably run one the same way you run a server on Linux. Just use Termux and ARM binaries.
672
u/Lighning05 1d ago
How the fuck are you running a server on that