# 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](../../service-knowledge-base/virtual-private-servers/logging-into-your-vps-windows "mention")
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="https://117306917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNMJyT1j9vuQnp7boSnoR%2Fuploads%2FVhBCnEMmsdwUeSEYo02r%2Fimage.png?alt=media&#x26;token=37496761-48d2-4fe0-bed3-982cf596e0e8" 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="https://117306917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNMJyT1j9vuQnp7boSnoR%2Fuploads%2FgrvNEPqTttPbSF6hSTqi%2Fmstsc_RjfLHjgbVx.png?alt=media&#x26;token=dbb83011-2b53-4060-b368-219b8305767a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://117306917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNMJyT1j9vuQnp7boSnoR%2Fuploads%2F9PfYONFNBZ3rAPeHHkhw%2Fimage.png?alt=media&#x26;token=11747d6c-d92f-4f07-907d-c05fee093051" 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="https://117306917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNMJyT1j9vuQnp7boSnoR%2Fuploads%2FrAgxd1ClgH1czPhzs8ND%2Fmstsc_4Bn0TZ9dLK.png?alt=media&#x26;token=10d04014-9b7d-47ca-a3b2-046ee88f4237" 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="https://117306917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNMJyT1j9vuQnp7boSnoR%2Fuploads%2FtGBK5PuxR8N2jdxaQLNb%2Fmstsc_wef64Qf26L.png?alt=media&#x26;token=d7f38ef8-7148-469b-8130-8a015f444a22" alt=""><figcaption></figcaption></figure>

And you are all set have fun!!!
