How to use DigitalOcean as a VPS for a GTA V FiveM Server?

Posted August 24, 2019 19.8k views
Getting StartedDigitalOceanUbuntu 16.04Initial Server Setup

I’m trying to create a FiveM Server so I followed the steps in the website provided by FiveM:

I proceeded to create a droplet in DigitalOcean and create a license key for FiveM using the ip address of the droplet I just made. I tried connecting to my server using that ip address but it didn’t show. I’m not sure where to go on from here. If someone could please help me that would be great. Thank you!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


First you will have to connect to your Droplet via SSH, here’s how you could do that:

Then once you’ve logged into the droplet you can follow the Linux steps from the official site on how to install the software:

  • Create a new folder (for example mkdir /home/username/server).
  • Download the latest master branch build for Linux from the artifacts server(copy the URL for the latest server version and use wget <url> to download it).
  • Extract the build using cd path/to/server/folder && tar xf fx.tar.xz (you need to have xz installed, on Debian/Ubuntu this is in the xz-utils package).
  • Clone cfx-server-data in a new folder (other than your FXServer folder). For example git clone /home/username/server-data
  • Make a server.cfg file in your server-data folder (copy the example server.cfg file below into that file).
  • Generate a license key at
  • Set the license key in your server.cfg using sv_licenseKey "licenseKeyGoesHere".
  • Run the server from the server-data folder:
bash /home/username/server/ +exec server.cfg

Hope that this helps!

  • I’ve been busy and haven’t got myself do this, but now that I have I’m still encountering problems. I followed this video: until he starts doing Node.js stuff so I could do the PuTTy stuff. Afterwards, I followed this video I then proceeded to direct connect to my server using the IP address but it could not find the server for some reason. And when I tried connecting to my server using FileZilla it would either timeout or say Disconnected: No supported authentication methods available (server sent: publickey).

    • Hello,

      To connect to your server via FileZilla you need to set your public SSH key in the Site Manager entry for your server (Use Protocol “SFTP” and Logon type “key file”).

      But you should be able to do everything via Putty, all of the commands from the official documentation should be executed via the terminal (Putty).