#Dedicated Server Setup

Before starting, make sure that you have unreal engine source version setup.

#Basic Setup

Now when you have the source build of Unreal Engine, you can start with the following steps:

  1. Create a new C++ project or open an existing one. If it's a blueprint project, you can convert it to a C++ project by adding a empty c++ class to the project.
  2. Now add the server target to your project which is required for the dedicated server build. To do this, open the source folder of your project and create a new file named ProjectNameServer.Target.cs and add the code from ProjectNameEditor.Target.cs to it. Replace ProjectName with the name of your project and also replace all the Editor with Server in the file.
  3. Now open your editor and start the build process. When the build process is complete, you will see a new option in the build menu named Server. Select this option and build the server target.
  4. Now Zip the server build and upload it to PlayFab. You can use the PlayFab Game Manager to upload the build to PlayFab.

Now you have successfully uploaded the dedicated server build to PlayFab. You can now start the server from the PlayFab Game Manager.

#Video Tutorials:

#Complete Setting up a dedicated server for Unreal Engine 5 with PlayFab:

#Build Unreal Engine 5 from source: