Is your Bedrock Server unavailable after setting it up successfully for a short time?

Published by Jose on

Greetings All,

I was setting up a Minecraft Bedrock server for me to play multiplayer with some friends when my server would soon go unavailable.

Frustratingly I rebuilt it on a different Cloud Provider (GCP) and got it working again – great I thought.

Shortly after it broke again.

After giving it a night of thought I ended up finding the culprit – keeping the session alive.

After I closed my SSH session via putty to my GCP it would fail.

Researching said using “Screen” will keep this session alive and thus my Minecraft server session for all to enjoy.

Read below on how to accomplish this!


[Step 1] Installing Screen

Depending on your version of Linux (Ubuntu, Debian, CentOS, etc) installing screen relies on a package manager/installer. You’ll either use “apt” or “yum”. If you know which one your distro uses, choose that command from the following. If you don’t, you’re free to try both, it wont hurt anything and only one will work.

Login to your server as “root” if available, if you do not have root access to your server then this may not work and you’ll have to ask your host to provide you with instructions. If you are logged in as a username other than root you can always prefix any of these commands with “sudo” or “su”.

apt-get install screen (hit enter)

yum install screen (hit enter)

[Step 2] Using Screen

Once the installation is finished, you’re ready to use screen. Using screen is just as easy as installing it.. all you have to do is type one command.

screen (hit enter)

Now you should see a fresh terminal screen and you’re ready to perform your commands to start your server. Once you’ve got your Minecraft server running and you see the games console on your screen, you’re done! Now there are just a couple extra commands to remember to control your new toy.

Exiting (detaching) from your Minecraft console’s screen

So you’ve started your server and you’re staring at the console, ready to exit and work on something else or play the game?

To detach the screen you’re currently viewing you’ll do this:

hold down CONTROL and hit A and then D

You should now see (detached) and your original Terminal/PuTTy screen.. congrats, you’re almost done!

Resuming a running screen

So you’ve detached your screen, your server is still running and you’ve closed PuTTy/Terminal and played the game for a couple hours.. but you need to restart your server.. how? Log back into your server and type:

screen -r

If you only have one screen running, you’ll be instantly transferred to that one screen. If you happen to have opened more than one in your travels, you’ll be presented with a list of open screens that looks similar to this:

There are several suitable screens on: 6962.ttys000.computername (Detached) 6966.ttys000.computername (Detached) Type “screen [-d] -r [pid.]” to resume one of them.

If you’re presented with this list, you’ll want to use the “PID” number at the beginning of the screen you want to resume, in the above examples the PIDs are 6962 and 6966. To resume one of the screens you’d use the following format:

screen -r 6962


If you have any questions, feel free to ask but I’ve covered just about everything here so good luck and enjoy your new found knowledge. :smile.gif:
Categories: Misc


Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *