# How to run my game on a separate computer (dedicated server)?

**URL:** <https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [September 22, 2018, 9:48am UTC](https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600 "2018-09-22T09:48:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![G1K777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@G1K777](https://forums.unrealengine.com/u/G1K777)\
**Post date:** [September 22, 2018, 9:48am UTC](https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600/1 "2018-09-22T09:48:15Z")

</div>

Hello,  
i want to run my game on a separate machine.  
How can i do that?  
I can’t find any good tutorials on this.

---

<div class="post-metadata">

**Author:** ![NotSoAccurateNo1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NotSoAccurateNo1](https://forums.unrealengine.com/u/NotSoAccurateNo1)\
**Post date:** [September 22, 2018, 4:54pm UTC](https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600/2 "2018-09-22T16:54:54Z")

</div>

You have to migrate the project folder

---

<div class="post-metadata">

**Author:** ![G1K777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@G1K777](https://forums.unrealengine.com/u/G1K777)\
**Post date:** [September 22, 2018, 8:25pm UTC](https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600/3 "2018-09-22T20:25:06Z")

</div>

I only found this here

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![NotSoAccurateNo1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NotSoAccurateNo1](https://forums.unrealengine.com/u/NotSoAccurateNo1)\
**Post date:** [September 23, 2018, 5:18am UTC](https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600/4 "2018-09-23T05:18:29Z")

</div>

Sorry, I misunderstood the question. I have no idea how to build for a dedicated server.

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [September 23, 2018, 8:08am UTC](https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600/5 "2018-09-23T08:08:04Z")

</div>

> [@G1K777](#):
>
> I only found this here  
> [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux)#Section_1_Building_a_dedicated_server_in_Unreal_Engine_4)

So where are you stuck? that guide explains it pretty well.

---

<div class="post-metadata">

**Author:** ![G1K777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@G1K777](https://forums.unrealengine.com/u/G1K777)\
**Post date:** [September 23, 2018, 7:50pm UTC](https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600/6 "2018-09-23T19:50:48Z")

</div>

So i was working few times on a private server and we used FreeBSD to run all the server files.  
In UE4 there is a EXE file that you run and the server is online?! That’s bit weird if you ask me.  
I somehow expect files that run only on a server and not a exe file.

I asked a friend and he said that i can use the “dedicated server” checkbox in the UE4 editor for editing purposes and that i don’t need to compile the whole source code each time to test it.

The other issue is, how does the “switch has authority” work?  
For example if i create a pawn and add a “switch has authority” and connect a function like “Take damage” where i subtract some health and use it on “Authority” will it run on the server or on the client? Because the pawn is on the client?

When i was making the private server, we had a client and server files.  
We need to change the client and the server files so they match.  
In UE4 you have some “switch has authority” that you add inside a Client BP Pawn and that is the confusing part.

There are also some tutorials that almost explain nothing and just basicly “copy paste” things.  
UE4 has some streams that go for 4h and 70% of it is just random talking.  
I’m watching such streams to learn and not to listen to some cringe jokes.  
I wish that there where someone who knows how to do this and would make a 2018 Video with 4.20.3 of it. Like drawing the new baseline…  
In each video i watch i get more and more confused because everyone explains it different.

So far the best one is this guy here:

> **[Mathew Wadstein](https://www.youtube.com/channel/UCOVfF7PfLbRdVEm0hONTrNQ)**
>
> This channel is dedicated to exploring Unreal Engine 4 and the Blueprint programming language that it uses. You can think of it as a companion to the API documentation as I try to cover the how and why for what things are used for when using the...

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [September 23, 2018, 9:14pm UTC](https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600/7 "2018-09-23T21:14:02Z")

</div>

> [@](#):
>
> So i was working few times on a private server and we used FreeBSD to run all the server files.  
> In UE4 there is a EXE file that you run and the server is online?! That’s bit weird if you ask me.  
> I somehow expect files that run only on a server and not a exe file.

Not entirely sure what you mean about a server being online? You want a LAN only server? You can build a Linux server if you don’t want it on Windows.

> [@](#):
>
> I asked a friend and he said that i can use the “dedicated server” checkbox in the UE4 editor for editing purposes and that i don’t need to compile the whole source code each time to test it.

That is correct. The editor can emulate both a listen-server and a dedicated server but it is still recommended to make real tests with a built version to make sure everything works as expected.

> [@](#):
>
> The other issue is, how does the “switch has authority” work?  
> For example if i create a pawn and add a “switch has authority” and connect a function like “Take damage” where i subtract some health and use it on “Authority” will it run on the server or on the client? Because the pawn is on the client?

Authority will run on the server and remote is the clients when dealing with replicated classes.

> [@](#):
>
> When i was making the private server, we had a client and server files.  
> We need to change the client and the server files so they match.  
> In UE4 you have some “switch has authority” that you add inside a Client BP Pawn and that is the confusing part.

Replicated classes are both on the server and one or more clients. This is why the “Switch has Authority” node exist so you can separate the logic within the same class. Pawns are spawned on the server and if they are set as “Replicates” they will be updated on the clients too.

---

<div class="post-metadata">

**Author:** ![G1K777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@G1K777](https://forums.unrealengine.com/u/G1K777)\
**Post date:** [September 29, 2018, 11:21pm UTC](https://forums.unrealengine.com/t/how-to-run-my-game-on-a-separate-computer-dedicated-server/116600/8 "2018-09-29T23:21:00Z")

</div>

If i make switch has authority and connect a Savegame at the end. Will it create a save on the server?
