Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 66 additions & 6 deletions content/fivem-dedicated-server-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,79 @@ This guide will walk you through how to host a FiveM server through playit.gg
* **FiveM Server Guide - [docs.fivem.net](https://docs.fivem.net/docs/server-manual/setting-up-a-server/)**
* **FiveM Client Setup - [fivem.net](https://fivem.net/)**
* **Server Registration Key - [portal.cfx.re](https://portal.cfx.re/servers/registration-keys)**
* **TxAdmin Download - [runtime.fivem.net](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/)**

> We've decided to use [TxAdmin](https://docs.fivem.net/docs/server-manual/setting-up-a-server-txadmin/) for this demonstration. Other ways do exist and work with playit. This guide assumes that a FiveM server has already been created. If you are unsure how to set up a server, feel free to ask in the **[Discord](https://discord.gg/AXAbujx)**!
> We've decided to use [TxAdmin](https://docs.fivem.net/docs/server-manual/setting-up-a-server-txadmin/) for this demonstration. Other ways do exist and work with playit. If you are unsure how to set up a server, feel free to ask in the **[Discord](https://discord.gg/AXAbujx)**!

### Creating the server
First, unzip the file called `server.7z`. Inside, you will see these contents. If they don't look exactly like this, sort by `Type`.

{{< image src="post-img/playit-fivem-txadmin-serverfiles.png" alt="FiveM Server Files" >}}

Double-click and execute `FxServer.exe`. This will open a console window and a webpage where you can then configure the server. The PIN should be autofilled.

{{< image src="post-img/playit-fivem-fxserver-console-console.png" alt="FiveM Server Console, 1" >}}

{{< image src="post-img/playit-fivem-fxserver-console-web.png" alt="FiveM Server Console, 2" >}}

Continue to `Link Account`. If you do not have an account, create one and then return to this step. If you do, continue signing in.

{{< image src="post-img/playit-fivem-txadmin-authorisation-web.png" alt="FiveM TxAdmin Authorisation, 1" >}}

After account creation, set a password for your account. Continue registration.

{{< image src="post-img/playit-fivem-txadmin-console-account-web.png" alt="FiveM TxAdmin Authorisation, 2" >}}

Now, we can create a server using the guided setup shown on the next page.
Set a name for this new server.

{{< image src="post-img/playit-fivem-txadmin-console-newserver-name-web.png" alt="FiveM TxAdmin Server Setup, 1" >}}

For the deployment type, we recommend the `Popular Recipes`

{{< image src="post-img/playit-fivem-txadmin-console-newserver-deployment_type-web.png" alt="FiveM TxAdmin Server Setup, 2" >}}

Choose a template that you like. This changes the behaviour and features on the server.
We'll just be using the FiveM Basic Server - it's the first one in the list.

{{< image src="post-img/playit-fivem-txadmin-console-newserver-template-web.png" alt="FiveM TxAdmin Server Setup, 3" >}}

Choose a place to save your server files. The auto generated name is fine, and does not need renamed.

{{< image src="post-img/playit-fivem-txadmin-console-newserver-filepath-web.png" alt="FiveM TxAdmin Server Setup, 4" >}}

Go to Recipe Deployer.

{{< image src="post-img/playit-fivem-txadmin-console-newserver-finish-web.png" alt="FiveM TxAdmin Server Setup, 5" >}}

Here is where you change visibility settings. We recommend only changing the name and description

{{< image src="post-img/playit-fivem-txadmin-console-newserver-deployer-1-web.png" alt="FiveM TxAdmin Server Setup, 6" >}}

You need a registration key to validate your server.
Go to [portal.cfx.re](https://portal.cfx.re/servers/registration-keys) and create a new key - copy this.

{{< image src="post-img/playit-fivem-txadmin-console-newserver-cfxre-new-key-web.png" alt="FiveM TxAdmin Server Setup, 7" >}}

Paste this in Recipe Deployer, Step 2. Click `Run Recipe`.

{{< image src="post-img/playit-fivem-txadmin-console-newserver-deployer-2-web.png" alt="FiveM TxAdmin Server Setup, 8" >}}

Change the basic configuration file if you wish. If everything looks correct, click `Save & Run Server`

{{< image src="post-img/playit-fivem-txadmin-console-newserver-deployer-4-web.png" alt="FiveM TxAdmin Server Setup, 9" >}}

You now have the ability to join the server on your local network, as well as logs and a command line.

{{< image src="post-img/playit-fivem-txadmin-console-newserver-completed.png" alt="FiveM TxAdmin Server Setup, 10" >}}

### Creating a tunnel
> This server uses `TCP/UDP 30120`, which means that free users will not be able to create this - however, you can check out **[playit premium](https://playit.gg/account/billing/shop/premium)**

Set up the tunnel as follows:

```text
Tunnel Type: TCP/UDP (protocol)
Tunnel Type: FiveM
Port Count: 1
Local Port: 30120
```
Expand All @@ -39,7 +102,7 @@ Your tunnel has been created, and the next time you open `FXServer.exe`, the ser
Set up the tunnel as follows:

```text
Tunnel Type: TCP (protocol)
Tunnel Type: HTTPs
Port Count: 1
Local Port: 40120
```
Expand All @@ -53,7 +116,4 @@ Local Port: 40120
Inside of FiveM, click on Play, and go to the server list. We'll want to direct connect.
To do this, we'll type in `>IP_Address:Port`. This will be different for everyone.


{{< image src="post-img/playit-fivem-fivem_connect.png" alt="FiveM Game Server" >}}


8 changes: 6 additions & 2 deletions content/how-to-lower-ping.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ Often the biggest thing you can do to adjust latency is to change where traffic

On the playit webpage for your agent, you can see the ping from your playit agent to our tunnel servers. This value about `2 * Latency(Hop 3)`. So in my case `Latency(Hop 3) = 7ms`. If I were a connecting to my own game server on playit.gg, `Latency(Hop 3) + Latency(Hop 4) = 14ms`. As a I said, sorta complicated.

{{< image src="post-img/agent-latency.png" alt="agent-ping" >}}
You can test your latency to different regions by using [ping.playit.gg](https://ping.playit.gg/)

{{< image src="post-img/playit-lower-ping-test.png" alt="Ping Test, 1" >}}

{{< image src="post-img/playit-lower-ping-test-results.png" alt="Ping Test, 2" >}}

You can change which datacenter you're being routed to. Do note, this does not currently work for our Minecraft Plugin and old versions of the playit program. Changing this value will directly influence `Latency(Hop 3) + Latency(Hop 4)` in your players' overall ping. In general, for the best performance you want the reported ping for your playit agent to be as low as possible.

Expand All @@ -72,7 +76,7 @@ This requires playit premium. With playit premium you can create regional tunnel

**Ping commands to playit regions**

```
```bash
ping ping.gl.ply.gg # Free Tunnel
ping ping.na.ply.gg # North America Tunnel
ping ping.eu.ply.gg # Europe Tunnel
Expand Down
Binary file modified static/post-img/agent-change-routing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/post-img/playit-lower-ping-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.