# Creating Listen server with .bat files

**URL:** <https://forums.unrealengine.com/t/creating-listen-server-with-bat-files/69670>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [July 22, 2016, 8:56pm UTC](https://forums.unrealengine.com/t/creating-listen-server-with-bat-files/69670 "2016-07-22T20:56:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![envenger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@envenger](https://forums.unrealengine.com/u/envenger)\
**Post date:** [July 22, 2016, 8:56pm UTC](https://forums.unrealengine.com/t/creating-listen-server-with-bat-files/69670/1 "2016-07-22T20:56:09Z")

</div>

I went through this wiki page

> **[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...

regarding creating a dedicated server and joining it through clients.

Is there any similar way to do with listen server. I tried with -game alone something like this

```auto

"C:\Work\UE 4.11-Substance\Engine\Binaries\Win64\UE4Editor.exe" "C:\Work\Projects\QuickShower_Code\QuickShower.uproject" -game -log -nosteam -ResX=1280 -ResY=960

```

And I was not able to see any IP address similar to what I saw here

[![](https://d26ilriwvtzlb.cloudfront.net/c/c4/DedicatedServerWinSockIP.jpg) ](https://d26ilriwvtzlb.cloudfront.net/c/c4/DedicatedServerWinSockIP.jpg)

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [July 24, 2016, 1:10am UTC](https://forums.unrealengine.com/t/creating-listen-server-with-bat-files/69670/2 "2016-07-24T01:10:36Z")

</div>

Hi Envenger!

Lovely to hear from you again!

With a listen server I’ve found I can always just do this:

```auto

"C:\Program Files (x86)\Epic Games\ **4.11** \Engine\Binaries\Win64\UE4Editor.exe" "%CD%\YourGame.uproject" 127.0.0.1 -game -ResX=800 -ResY=700 -WinX=800 -WinY=20 -log 

```

It is only for dedicated that I needed to use method shown above.

Are you finding that using 127.0.0.1 is not working for listen server?

❤

Rama

PS: Anyone: Make sure if you use my script above that you make the engine version match yours 🙂

---

<div class="post-metadata">

**Author:** ![envenger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@envenger](https://forums.unrealengine.com/u/envenger)\
**Post date:** [July 25, 2016, 8:38pm UTC](https://forums.unrealengine.com/t/creating-listen-server-with-bat-files/69670/3 "2016-07-25T20:38:31Z")

</div>

> [@Rama;569727](#):
>
> Hi Envenger!
> 
> Lovely to hear from you again!
> 
> With a listen server I’ve found I can always just do this:
> 
> ```auto
> 
> "C:\Program Files (x86)\Epic Games\ **4.11** \Engine\Binaries\Win64\UE4Editor.exe" "%CD%\YourGame.uproject" 127.0.0.1 -game -ResX=800 -ResY=700 -WinX=800 -WinY=20 -log 
> 
> ```
> 
> It is only for dedicated that I needed to use method shown above.
> 
> Are you finding that using 127.0.0.1 is not working for listen server?
> 
> ❤
> 
> Rama
> 
> PS: Anyone: Make sure if you use my script above that you make the engine version match yours 🙂

Hello Rama… Hope you are doing good. Nope it doesn’t seem to be working and its creating another instance of the game.

---

<div class="post-metadata">

**Author:** ![Roman\_Roba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roman\_Roba](https://forums.unrealengine.com/u/Roman_Roba)\
**Post date:** [September 17, 2020, 1:12pm UTC](https://forums.unrealengine.com/t/creating-listen-server-with-bat-files/69670/4 "2020-09-17T13:12:26Z")

</div>

Hi, I had same issue and found out that adding _ **?listen** _ after a map name will run the game as listen server.

```auto

"..\UE4Editor.exe" "..\YourGame.uproject" YourMap?listen -game -ResX=1200 -ResY=800 -WinX=200 -WinY=200 -log -nosteam -windowed

```
