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

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!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.


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! Regards, Bobby