# How do I make a Minecraft-like dedicated server for my game?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909>\
**Category:** Blueprint\
**Tags:** dedicated-server, unreal-engine, Blueprint, question\
**Created:** [July 22, 2014, 10:07am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909 "2014-07-22T10:07:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serellyn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Serellyn](https://forums.unrealengine.com/u/Serellyn)\
**Post date:** [July 22, 2014, 10:07am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/1 "2014-07-22T10:07:11Z")

</div>

Hey guys,

I’m looking to create a dedicated server for my game which works like the dedicated server minecraft has.  
Basically it’s a like a CMD window. I want the same kind of server setup. I want the host to be able to, for example type ‘kill player1’ in the server window and execute it.

Where do I start and how do I build/package the server?

---

<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:** [July 25, 2014, 12:09am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/2 "2014-07-25T00:09:23Z")

</div>

If you useing UE4’s replication system it already have dedicated server support, because what dedicated server is, it’s mode when only server portion is active without client. Dedicated server mode is build in by default here you can find instructions how to do run it:

> **[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 — https://unrealcommunity.wiki/! You will be able to find content from...

You can also build engine to have only server, you would need to build it from engine source as server build (or im missed something? ;p). But in usually dedicated server is distributed together with client as buildin feature , at least in Q3 engine times. Minecraft is exception as they developed server and client separately, not long ago they integrated them both.

---

<div class="post-metadata">

**Author:** ![Serellyn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Serellyn](https://forums.unrealengine.com/u/Serellyn)\
**Post date:** [July 29, 2014, 1:55pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/3 "2014-07-29T13:55:14Z")

</div>

Thank you for your answer.  
The thing is that I can’t get it to work. I must be doing something wrong but I just can’t build the dedicated server. Is there, besides that page, a detailed step by step tutorial to build the dedicated server?

---

<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:** [July 29, 2014, 1:57pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/4 "2014-07-29T13:57:46Z")

</div>

Whats going wrong? can you describe it?

---

<div class="post-metadata">

**Author:** ![Serellyn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Serellyn](https://forums.unrealengine.com/u/Serellyn)\
**Post date:** [July 29, 2014, 2:02pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/5 "2014-07-29T14:02:53Z")

</div>

Not really.  
When I try to run my game through command line with: -server. It does just start the game, not the server.  
So I tried really building a dedicated server with the following page: [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Standalone_Dedicated_Server)

The thing is, it says: “The next step is to compile the server code using Visual Studio”… I have no idea how to compile the server. I know how to add an actor class and other classes to my project. But not how to compile the code from that page to create a dedicated server.

I hope you can still catch my drift because I’m confused an I’m not native English so it’s not the easiest thing to explain things for me 😉

---

<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:** [July 29, 2014, 2:12pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/6 "2014-07-29T14:12:07Z")

</div>

Here you have guide how to set up C++ development environment which let you compile your project:

> **[Programming Quick Start](https://docs.unrealengine.com/5.1/en-US/unreal-engine-cpp-quick-start/)**
>
> Create your first code project and add a new C++ class.

---

<div class="post-metadata">

**Author:** ![Serellyn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Serellyn](https://forums.unrealengine.com/u/Serellyn)\
**Post date:** [July 29, 2014, 2:24pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/7 "2014-07-29T14:24:41Z")

</div>

Thanks for the link! I will soon try it it out and let you know if I succeeded. thank you for your help so far.

---

<div class="post-metadata">

**Author:** ![Juancko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Juancko](https://forums.unrealengine.com/u/Juancko)\
**Post date:** [February 9, 2018, 2:07pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/8 "2018-02-09T14:07:24Z")

</div>

con hamchi

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [January 23, 2019, 2:13am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/9 "2019-01-23T02:13:18Z")

</div>

starting my game’s dev build from the commandline (in version 4.17.2) with -server -log  
does not seem to make a difference, either (same as your problem). The game just launches as if I double clicked it, rendering graphics and making sounds and playing the game as a player instead of acting like a dedicated server.

---

<div class="post-metadata">

**Author:** ![RichardGravener](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RichardGravener](https://forums.unrealengine.com/u/RichardGravener)\
**Post date:** [July 4, 2022, 7:48pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-minecraft-like-dedicated-server-for-my-game/288909/10 "2022-07-04T19:48:44Z")

</div>

Dedicated servers have advanced performance potential making them an efficient platform for gaming workloads. **Minecraft dedicated servers are the ideal option for online Minecraft gaming**. In this tutorial, you will learn why and how to set up a dedicated Minecraft server.
