How to install FiveM on home hosted Linux servers

Playing GTAV online with your friends is really fun…until one of those hackers gets in your lobby at which point the fun is over completely. Thankfully there are solutions to that problem. For one you can follow our guide on how to install ragecoop which offers the possibility to play the singleplayer with your friends. Should you be interested in playing the online mode though you need to bring the bigger guns. So lets take a closer look on how to install FiveM on a home hosted Linux server.

Preparation

For this tutorial to work you should have SSH access to a server running a Ubuntu/Debian based Linux distribution. In best case the server should have at least a 2 core x64/x86 processor and a SSD equipped. Furthermore it is needed to have a public IP address if your friends should be able to connect to the server as it is otherwise only accessible from your home network. You should also have access to your home router to be able to change the port forwarding rules.

Installation

1. Creating structure

Before we begin downloading the right files it is advised to update and upgrade all the packages on the server by running:

Bash
sudo apt update && sudo apt upgrade

Furthermore it is a good idea to manage all the files within one folder. To do this create a folder by typing:

Bash
mkdir fivem && cd fivem

Note: should the following commands return a permission denied error you likely need to retry it with the word sudo in front of it

2. Download the files

Now head over to the official download page of FiveM to get the newest server files for linux. By right clicking on the latest download button you are able to copy the link too it and paste it inside the ssh connection to your server like this:

Bash
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/5848-4f71128ee48b07026d6d7229a60ebc5f40f2b9db/fx.tar.xz

With the wget command you will then download the tar file directly into the folder. As tar files are packages you will need to unpack them before doing anything with it:

Bash
tar xf fx.tar.xz

3. Port forwarding and IP addresses

Port forwarding can be a real pain when it comes to servers. Depending on you network configuration this is more or a less a problem. In the following it is expected that your home connection has a public IP so that you can simply tell your router which port to open from which device and it will make the reachable from a static IPv4 address.

Should this be the case, log in into your routers admin panel and search for the IP of your Linux server which you can obtain by simply typing “ifconfig” into the console. Once you found the right device set a forwarding rule for TCP port 30120 and UDP port 30120.

3. Starting the admin panel

Now proceed to start the server admin panel by running:

Bash
bash run.sh

After the admin panel has started up you can try to connect to it. If your server is in your home network simply type in its local IP address followed by “:40120”. Should it not be in your home WiFi you first need to open the port in the firewall.

Once you accessed the admin panel you will see that it requires a pin from you. Go back to the server console and search through the server output until you find the small blue box with the instructions to connecting with the server. Now copy this pin and copy it into the website from before.

4. Create an account at FiveM

Before you are able to proceed further you will need to register your server at the FiveM keymaster service. Once you are logged in switch over to the new server option and register you server by typing in the public IP address of you router and a random name you would like your server to be saved under. Also choose home hosted for the server provider. Once the newly registered server has been saved you are given a key that you should save for later.

5. Finish setting up the admin pannel

Now switch back to the txAdmin panel and proceed by logging in with you FiveM keymaster credentials and follow the admin panel installation guide. If you just want to get it running always choose the recommended option. The server will then build a recipe for the right configuration you choose during the process. After clicking a few times next you will end up at a point where you need the freshly generated key that you copied before again.

After running the recipe and saving the server config file you are finally able to press “save and run server”! The site then redirects you to the main admin control panel of your new FiveM server.

Connecting to the server

Now head over to FiveM and install the client. After launching it press F8 and type in:

Bash
connect [YOUR IP ADDRESS]:30120

Congratulations you created your very own FiveM server! Should you be interested in more server guides check out our full guide to ragecoop servers allowing you to play the GTA offline mode together with friends or at older classics such as setting up your own minecraft server.

This Post Has 46 Comments

  1. binance

    Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

  2. I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  3. Skapa personligt konto

    Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  4. Oh my goodness! Awesome article dude! Thanks, However I
    am having problems with your RSS. I don’t understand the reason why I can’t join it.

    Is there anybody getting similar RSS problems? Anyone that knows the answer will you kindly respond?
    Thanks!!

  5. ダッチワイフ

    ラブドール 販売You would have to devise some way of getting your caracross no less than a dozen dangerous rivers.You would have to climbto the very summit of a six-thousand-foot mountain range and then dropdown on the other side,

  6. บาคาร่า

    I have read several just right stuff here. Certainly price
    bookmarking for revisiting. I surprise how so much attempt you
    set to create this type of great informative site.

  7. I like the helpful information you provide in your articles.
    I will bookmark your weblog and check again here frequently.
    I’m quite certain I will learn many new stuff right
    here! Good luck for the next!

  8. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

  9. playersball

    I am truly delighted to read this weblog posts which includes lots
    of valuable information, thanks for providing these kinds of statistics.

  10. Hey there! Would you mind if I share your blog with my
    facebook group? There’s a lot of people that I think would really
    appreciate your content. Please let me know. Cheers

  11. I got this web page from my buddy who informed me concerning this web
    site and now this time I am browsing this web page and
    reading very informative articles or reviews here.

  12. Somebody necessarily lend a hand to make
    seriously articles I might state. That is the first time I frequented your web page and thus far?
    I surprised with the analysis you made to make this particular submit incredible.

    Excellent activity!

  13. It’s enormous that you are getting ideas from this piece of writing as well as from our discussion made at this time.

  14. Biodiversity

    Attractive component of content. I just stumbled upon your web site and in accession capital to assert that I acquire
    actually loved account your weblog posts. Anyway I will
    be subscribing in your feeds and even I fulfillment you access consistently fast.

  15. Deforestation

    Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something.
    I think that you can do with a few pics to drive the message home a bit,
    but other than that, this is magnificent blog. A fantastic
    read. I will definitely be back.

  16. I’m not that much of a internet reader to be honest but
    your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back later on. Cheers

  17. Honest Reviews

    Hi! This is my first comment here so I just wanted to give a quick shout out
    and tell you I genuinely enjoy reading your posts. Can you recommend
    any other blogs/websites/forums that go over the same topics?
    Thank you!

  18. Buying Guide

    Ahaa, its nice dialogue concerning this paragraph here at this web site, I have read
    all that, so at this time me also commenting here.

  19. Thanks for sharing your thoughts. I really appreciate your efforts and I
    will be waiting for your next write ups thank you
    once again.

  20. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored material stylish.
    nonetheless, you command get got an nervousness over that you wish be delivering the following.
    unwell unquestionably come further formerly again as exactly
    the same nearly very often inside case you shield this hike.

  21. Thank you a lot for sharing this with all folks you actually know what you are speaking about!
    Bookmarked. Kindly also seek advice from my web site =).
    We will have a link alternate agreement between us

  22. This design is incredible! You certainly know how to
    keep a reader entertained. Between your wit and your videos,
    I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job.
    I really loved what you had to say, and more than that, how
    you presented it. Too cool!

  23. I enjoy what you guys are up too. Such clever work and reporting!

    Keep up the excellent works guys I’ve included you guys to my personal blogroll.

  24. Vegan lifestyle

    I am regular reader, how are you everybody?
    This paragraph posted at this web page is really nice.

  25. Plant-Based diet

    Thanks for finally writing about > How to install FiveM on home hosted Linux servers
    < Liked it!

  26. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  27. Sustainable living

    Why users still use to read news papers when in this technological globe the whole
    thing is available on net?

  28. That is very attention-grabbing, You are an excessively skilled blogger.
    I’ve joined your rss feed and sit up for looking for extra of your magnificent post.
    Additionally, I have shared your website in my social networks

  29. Review Aggregator

    I loved as much as you’ll receive carried out right
    here. The sketch is tasteful, your authored material stylish.
    nonetheless, you command get got an shakiness over that you
    wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this hike.

  30. I’m not that much of a internet reader to
    be honest but your sites really nice, keep it up! I’ll
    go ahead and bookmark your site to come back in the future.
    Many thanks

  31. Dakota

    Fabulous, what a web site it is! This webpage presents valuable data to us, keep it up.

  32. More info

    Thanks for the auspicious writeup. It in fact was a leisure account
    it. Glance complicated to far brought agreeable from you! However, how
    can we communicate?

  33. Stevie

    I go to see each day some web sites and blogs to read content, except this webpage offers quality
    based content.

  34. Read the news

    I do not even know how I finished up here, however I assumed this submit
    was good. I don’t know who you might be however definitely you are
    going to a famous blogger for those who aren’t
    already. Cheers!

  35. Tap to Read

    I think this is one of the most important info for me.

    And i’m glad reading your article. But want to remark on some general things, The site style is perfect, the articles is really excellent :
    D. Good job, cheers

Leave a Reply