Has anybody been able to successfully selfhost a 2009scape server?
Has anybody been able to successfully selfhost a 2009scape server?
Has anybody been able to successfully selfhost a 2009scape server?
The timing! I just finished 5 hours of playing on my self hosted server with a friend of mine lol On ubuntu, I just needed java installed, download the git repo, then ran the run sh file. That was it. In the client you edit the config file to swap the public server address with your server's ip and when you launch next, it will connect to yours.
Pretty much this, make sure it's Java 11 though
Sure. I wrote the docker-compose file in the repository. Unless something major has changed, it should be pretty straightforward to just clone the repo and then run
shell
$ docker compose up
IIRC there is a MR to improve it, I just haven't had the time to finish testing and reviewing it
If anybody uses this in prod from a git repo, might want to place your database creds in an .env file adjacent to your compose file then gitignore the .env.
Referenced like so:
.env contents
MYSQL_ROOT_PASSWORD=MyExamplePassword
MYSQL_ROOT_USER=MyExampleUser
docker-compose.yml contents:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_ROOT_USER: ${MYSQL_ROOT_USER}
Don't commit secrets to git!
Damn mobile formatting.
What issues are you running into?
I'm having a lot of issues, but I don't really know what I'm doing either.
Right now, when I try to run it on my machine, I get this error saying that I can't connect to google then asking if I'm offline. I haven't had this error before when I tried getting it to work, but it's where I am now.
Ultimately, I'd like to reach a point where I can host it on my own machine with a VPN and port forwarding so other people can connect from the outside.
No but I definitely want to now that I know this exists
Would recommend playing on the live multiplayer server rather than self hosting