# Headless Standalone Server pops Viewport

**URL:** <https://forums.unrealengine.com/t/headless-standalone-server-pops-viewport/329492>\
**Category:** Platform & Builds\
**Tags:** Server, unreal-engine, packaging-projects, question\
**Created:** [August 21, 2015, 5:09pm UTC](https://forums.unrealengine.com/t/headless-standalone-server-pops-viewport/329492 "2015-08-21T17:09:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_01dd28a6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_01dd28a6](https://forums.unrealengine.com/u/anonymous_user_01dd28a6)\
**Post date:** [August 21, 2015, 5:09pm UTC](https://forums.unrealengine.com/t/headless-standalone-server-pops-viewport/329492/1 "2015-08-21T17:09:53Z")

</div>

I package our game so i have a MyGame.exe style result and directory.  
Then make a shortcut and add command line arguments…

MyGame.exe ?listen -server -log -LANPLAY PORT=7776

It runs and the log port shows, and the logs show it is listening on port 7776 just fine.

The problem is it also pops up a full viewport of the game nad a player is active in it.

How do I force no player and headless?

I see the posts on building a server from scratch, but shouldn’t -server just do this?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4005ccc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4005ccc](https://forums.unrealengine.com/u/anonymous_user_d4005ccc)\
**Post date:** [August 22, 2015, 12:05am UTC](https://forums.unrealengine.com/t/headless-standalone-server-pops-viewport/329492/2 "2015-08-22T00:05:27Z")

</div>

The argument **listen** has you start a client that also acts as a server. I believe you simply have to remove that argument if you want just a dedicated server.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_01dd28a6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_01dd28a6](https://forums.unrealengine.com/u/anonymous_user_01dd28a6)\
**Post date:** [September 2, 2015, 8:11pm UTC](https://forums.unrealengine.com/t/headless-standalone-server-pops-viewport/329492/3 "2015-09-02T20:11:54Z")

</div>

Turns out that it is a case of RTFM.

> **[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 really DO have to get the UE4 source, compile it etc.

---

<div class="post-metadata">

**Author:** ![Samlsewall](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Samlsewall](https://forums.unrealengine.com/u/Samlsewall)\
**Post date:** [December 9, 2016, 10:32pm UTC](https://forums.unrealengine.com/t/headless-standalone-server-pops-viewport/329492/4 "2016-12-09T22:32:42Z")

</div>

Hey there, in order to put the game into headless mode, you need to include the arguement -NullRHI along with the

```
MyGame.exe ?listen -server -log -LANPLAY PORT=7776

```

This would look like

```
MyGame.exe ?listen -server -log -NullRHI -LANPLAY PORT=7776

```

Now, in order to be able to run the game without a player, I believe you may need to override the GameMode and specify there for something like spectator only?

But I don’t believe this is what you’re looking for. I believe that you are looking for something like this guide: [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Dedicated_Server_Guide_%28Windows_%26_Linux%29)
