Hosting a game server for friends on GCP
Tutorial on how to host your own game server on Google Cloud
Videos
Currently I'm hosting a private game server for me and my friends to play on, and for now we're using compute engine. This works fine for us who play for like 4 to 5 hours a session, but if we want to have a server that runs 24/7, there's a problem.
Right now, I start the game server by SSH'ing into the instance and running the server application, and the game connection is fine as long as I have the SSH window open. However when I close the SSH window (without shutting down the server application), we lose connection in about 5 or 10 minutes. I theorize it's because google does some behind-the-scene stuff when the machine isn't being actively monitored/accessed by SSH, and that cuts off our connection. Again, this is fine for our 4-5 hour session because I can just have the SSH window open in the background, but I can't keep it open 24/7.
What can I do to change this, or does GCP have another product that I should use instead? I looked at google game servers, but it looks more like it's for game developers who want to host servers in large quantities, instead of someone who just wants to host a server for a group of friends.
Edit: Solved- Thanks!
ยป npm install @google-cloud/game-servers