# Set up a FiveM Server on a VPS

1. Login into your Windows VPS where you can follow the guide [Logging into your VPS (Windows)](/docs/service-knowledge-base/virtual-private-servers/logging-into-your-vps-windows.md)
2. Download the server artifacts by going to the [Windows FiveM server artifacts page](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/). You can either click the latest recommended button or choose the latest version. If you need the latest version of TXAdmin for your server, select the 10778 artifact version. We’ll download the latest version of this guide.

<figure><img src="/files/ELTKmmylwid4ds2C7L5s" alt=""><figcaption></figcaption></figure>

3. You will need to use[ 7ZIP](https://www.7-zip.org/) as the file uses the .7z extension.
4. After downloading, extract the contents of the ZIP file into a folder named artifacts, which will be inside a Server folder that we’ll create in the C:/ location, as shown below.

<figure><img src="/files/hXpGhffW1cpjL9qc2XwB" alt=""><figcaption></figcaption></figure>

5. Double-click on the <mark style="color:green;">FXServer.exe</mark> executable file.

<figure><img src="/files/BDc5dO4iiHRglUpK3fQf" alt=""><figcaption></figcaption></figure>

6. A browser tab will open with the <mark style="color:green;">**TXAdmin**</mark> page displayed and the <mark style="color:green;">**PIN**</mark> already filled in. Click <mark style="color:green;">**Link Account**</mark> to proceed.
7. Then follow through the instructions provided by TXAdmin
8. You will need to open ports in your VPS to be able to connect to your server to do this you will need to open Powershell

<figure><img src="/files/JQbYPIrXJYTwktmtug2M" alt=""><figcaption><p>your powershell may look different depending on windows version</p></figcaption></figure>

9. You will paste the following into PowerShell and click enter to open ports after you do it will show as the following

```
netsh advfirewall firewall add rule name="FXServer-TCP" dir=in action=allow protocol=TCP localport=30120
netsh advfirewall firewall add rule name="FXServer-UDP" dir=in action=allow protocol=UDP localport=30120
netsh advfirewall firewall add rule name="txAdmin-TCP" dir=in action=allow protocol=TCP localport=40120
```

<figure><img src="/files/b9mI9C7AFrQTn3Anm82o" alt=""><figcaption></figcaption></figure>

And you are all set have fun!!!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fourseasonshosting.com/docs/game-knowledge-base/fivem/set-up-a-fivem-server-on-a-vps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
