How to Host two games on single droplet

September 10, 2017 1.5k views
Applications DigitalOcean Ubuntu Ubuntu 16.04

I made a single Game for two platforms one for pc and another for android, so i want to host my two games in one droplet, is it possibe?
(windows user)

1 comment
11 Answers
Aprexer September 10, 2017
Accepted Answer

Elaborate?

  • i made a unity game and successfully hosted with one droplet ip address (with unity default port number) and i want to host another game with same ip address(droplet) how? i dont want to create another droplet, how multiple game servers use single droplet?
    how to use single droplet to host multiple games?

You're going to face a few challenges if you try to simply run a second node app and host it on your server. Btw, this has very little to do with Digital Ocean, if at all.

The biggest challenge you'll face is that you can't have both apps listening on port 80, only one app wins. So unless you want users to see a different port number as part of the URL (I doubt that's the case), you'll need to look at setting up a reverse proxy of some kind. This can be achieved with Apache or nginx for example. This way both domains can point to the same public IP, both node apps can listen on different ports, and the reverse proxy takes care of routing requests to each one based on the hostname requested.
Gamer @ Dino Game

It would work but it'd be extreamly slow....happy wheels 2.0

The articles you share, it is very detailed and meticulous, I hope you will have more interesting articles to share with readers next time.

candy crush soda

You can do all that through the DO's DNS Panel, using the IP from the selected droplet (normally the same IP for all domains in the same droplet).

outlook entrar

Thank for your writting. You have made it very clear that the problem is happening. I really like your way of thinking Basketball Legends

I would love to read your blog post. Your blog has good information, I have good ideas from this great blog. I am always looking for this type of blog. Thanks for sharing!
happy wheels

Not all are right. Everyone has their own way of thinking and comments are quite rewarding
five nights at freddy's

As previously mentioned, most video sites allow you make and share a video on just about whatever you want. ilgeniodellostreaming

Have another answer? Share your knowledge.