# Do I have to build the entire engine from source in order to use it as a dedicated server?

**URL:** <https://forums.unrealengine.com/t/do-i-have-to-build-the-entire-engine-from-source-in-order-to-use-it-as-a-dedicated-server/438435>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, deployment, dedicated-server, development-server, unreal-engine, question\
**Created:** [November 27, 2018, 7:51pm UTC](https://forums.unrealengine.com/t/do-i-have-to-build-the-entire-engine-from-source-in-order-to-use-it-as-a-dedicated-server/438435 "2018-11-27T19:51:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alvarz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alvarz](https://forums.unrealengine.com/u/Alvarz)\
**Post date:** [November 27, 2018, 7:51pm UTC](https://forums.unrealengine.com/t/do-i-have-to-build-the-entire-engine-from-source-in-order-to-use-it-as-a-dedicated-server/438435/1 "2018-11-27T19:51:20Z")

</div>

Hello guys,

As the title says, in order to run a dedicated server, I need to build from source the entire engine? I’m currently diging into this and so far that’s what I figured it out but. I came from unity, there I just build the game in the same way as a client and then, start it in headless mode y pass to it some flags to use it as a dedicated server. Can I do this on UE4 ?

sorry my terrible english!

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [November 28, 2018, 2:56am UTC](https://forums.unrealengine.com/t/do-i-have-to-build-the-entire-engine-from-source-in-order-to-use-it-as-a-dedicated-server/438435/2 "2018-11-28T02:56:19Z")

</div>

Dedicated server mode is avable in any build with server code build (build with WITH\_SERVER defined) an can host the game, which is only excluded in Client build as far as i know. To run dedicated server all you need to do is start game with -server option in command line and you can run it even from editor on your project (with -game option to run without editor) as examples there:

> **[Networking Overview](https://docs.unrealengine.com/5.1/en-US/networking-overview-for-unreal-engine/)**
>
> Setting up networked games for multiplayer.

You only need to special build if you want special build just with dedicated server mode (aka Server build) without client and rendering portion, same goes with Client build which only contains client portion of the code, you need to do special build for it too. The default game build that launcher version of UE4 comes with server code. But only need that build when you got paid game and you want to distribute server for free, for example RTCW:Enemy Territory never had dedicated server build, because it was free, server providers only placed full game on the server and run it on dedicated server mode.

Btw you can run it directly in editor, there “Run Dedicated Server” option when you extend play button (menu where you got all play modes avable)

Editor build of engine is mostly full featured anyway, so things like special builds of your game you can always worry about it later. Ofcorse you need to remember plans about them when you code your game so you don’t trip on it later.

---

<div class="post-metadata">

**Author:** ![c0r37py](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/c0r37py/32/559700_2.png) [@c0r37py](https://forums.unrealengine.com/u/c0r37py)\
**Post date:** [May 6, 2021, 5:24am UTC](https://forums.unrealengine.com/t/do-i-have-to-build-the-entire-engine-from-source-in-order-to-use-it-as-a-dedicated-server/438435/3 "2021-05-06T05:24:07Z")

</div>

Can you confirm this? [UE4.26.2 feature missing](https://answers.unrealengine.com/questions/1028256/ue4262-feature-missing-while-building-from-source.html)  
I Build 4.26.1 for testing purpose and it has this Feature available but missing in 4.26.2.
