# \[4.24\] Lightbuilds started from commandline not connecting with swarm coordinator?

**URL:** <https://forums.unrealengine.com/t/4-24-lightbuilds-started-from-commandline-not-connecting-with-swarm-coordinator/230569>\
**Category:** Rendering\
**Tags:** UE4-24, unreal-engine\
**Created:** [May 22, 2021, 1:24pm UTC](https://forums.unrealengine.com/t/4-24-lightbuilds-started-from-commandline-not-connecting-with-swarm-coordinator/230569 "2021-05-22T13:24:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Memnarch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memnarch](https://forums.unrealengine.com/u/Memnarch)\
**Post date:** [May 22, 2021, 1:24pm UTC](https://forums.unrealengine.com/t/4-24-lightbuilds-started-from-commandline-not-connecting-with-swarm-coordinator/230569/1 "2021-05-22T13:24:28Z")

</div>

So recently we added a seperate buildstage to our pipeline which just runs the build for lights through the command line. A thing we noticed, compared to running from editor manually, is, that it does not pickup a connection to the swarm coordinator, and therefore keeps running on the light task alone. All other light builders have their swarm instances connected to the coordinator and the coordinator runs on the same system our commandline is run on.

We use gitlab, and therefore gitlab runner (which runs under a useraccount). Swarm coordinator has been started by a user manually on the desktop, and is already running when the pipeline is kicked off.

This is how the commandline looks like:  
UE4Editor-CMD.exe  
“%CI\_PROJECT\_DIR%\OurProject.uproject” -run=resavepackages  
-buildlighting -mapsonly -projectonly -allowcommandletrendering  
-Quality=Production

anyone has an idea?

---

<div class="post-metadata">

**Author:** ![SB\_CDufour](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sb_cdufour/32/1008648_2.png) [@SB\_CDufour](https://forums.unrealengine.com/u/SB_CDufour)\
**Post date:** [November 3, 2021, 12:20pm UTC](https://forums.unrealengine.com/t/4-24-lightbuilds-started-from-commandline-not-connecting-with-swarm-coordinator/230569/2 "2021-11-03T12:20:55Z")

</div>

Hey @Memnarch,

I hope you had your answer after all this time but I had a similar situation and realized that I had to completely disable my firewall on the workers and the coordinator for Swarm to work by command line.

---

<div class="post-metadata">

**Author:** ![Memnarch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Memnarch](https://forums.unrealengine.com/u/Memnarch)\
**Post date:** [November 16, 2021, 10:17am UTC](https://forums.unrealengine.com/t/4-24-lightbuilds-started-from-commandline-not-connecting-with-swarm-coordinator/230569/3 "2021-11-16T10:17:51Z")

</div>

Hi,  
No we didn’t get it to work, so we went with just the mainserver building for the time being. However, your response seems interesting and we’ll try that one.

---

<div class="post-metadata">

**Author:** ![SGotsko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SGotsko](https://forums.unrealengine.com/u/SGotsko)\
**Post date:** [July 26, 2024, 2:46pm UTC](https://forums.unrealengine.com/t/4-24-lightbuilds-started-from-commandline-not-connecting-with-swarm-coordinator/230569/4 "2024-07-26T14:46:06Z")

</div>

Hi, I know it’s been a while but I’m having same issue, when light build triggered from command line the swarm doesn’t distribute to orther agents. The firewall is off on all machines, coordinator and agent ping alright.
