I’m not sure if VPS is something that most developers setup, but I repeated this setup again today for the second time in months and forgotten what steps I took to do it, so I thought I can share this.
Setting it up
For starters, I use DigitalOcean’s VPS service. It’s cheap and you can setup multiple Droplets, which is really a nice feature.
Here’s a reference video https://www.youtube.com/watch?v=c8PNJfDjFQg for those not familiar with setting up VPS.
Unlike the video, I didn’t setup ZPanel but do use Putty and WinSCP.
I chose Ubuntu 14.04.3 64-bit for my Droplet.
You do need to install camke, gcc and g++ before you get started.
Standalone kNet library
The kNet library found here https://bitbucket.org/clb/knet/downloads is not up to date and didn’t build.
I’ve made a few corrections clb-knet-2441ea01b46a.zip, and it builds HelloServer that uses port 2345 that can be tested with 16_Chat demo.
You can also have a look at Torque3D’s masterserver implementation. The popular version that I know of just uses PHP and already tested to be still working. The code is also short and simple enough (~300 lines of code) but there’s some work to be done on the urho client side.