Hosting a game server for friends on GCP
Tutorial on how to host your own game server on Google Cloud
What would be the best service to host a game server?
When you’re starting out/developing just use something with a generous free tier. Google cloud has one (especially for the first year), and I’m pretty sure AWS has one.
If you just want servers you can run your game servers on look at Google compute engine or AWS ec2.
When you get closer to releasing you’ll have a better idea of what your needs are and then you can make a better call of which service to use.
More on reddit.comPort forwarding game servers with Google Wifi
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