# How to set startup proxy parameters for the desktop version of comfyui

**URL:** <https://forum.comfy.org/t/how-to-set-startup-proxy-parameters-for-the-desktop-version-of-comfyui/742>\
**Category:** Desktop Feedback\
**Tags:** issue, settings\
**Created:** [December 5, 2024, 2:44pm UTC](https://forum.comfy.org/t/how-to-set-startup-proxy-parameters-for-the-desktop-version-of-comfyui/742 "2024-12-05T14:44:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeanOne](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BeanOne](https://forum.comfy.org/u/BeanOne)\
**Post date:** [December 5, 2024, 2:44pm UTC](https://forum.comfy.org/t/how-to-set-startup-proxy-parameters-for-the-desktop-version-of-comfyui/742/1 "2024-12-05T14:44:35Z")

</div>

When using ComfyUI\_windows\_portable, I edit the `run_nvidia_gpu.bat` file to add proxy parameters and listen params. However, when using the desktop version, I don’t know how to set it up anymore.

 ![微信截图_20241205224240](https://canada1.discourse-cdn.com/flex009/uploads/comfyui1/original/1X/3a8400ad44399665122a4290770b6ffcb419d854.jpeg)

---

<div class="post-metadata">

**Author:** ![snomiao](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/snomiao/32/10_2.png) [@snomiao](https://forum.comfy.org/u/snomiao)\
**Post date:** [December 6, 2024, 7:01am UTC](https://forum.comfy.org/t/how-to-set-startup-proxy-parameters-for-the-desktop-version-of-comfyui/742/2 "2024-12-06T07:01:17Z")

</div>

1. try use TUN mode if you’re using Clash-like proxies.
2. try check ✅System Proxy in your proxy software (and restart ComfyUI)
3. try System Settings \> Network & Internet \> Proxy (and restart ComfyUI)

> ![image](https://canada1.discourse-cdn.com/flex009/uploads/comfyui1/original/1X/d11c93338667fbbf67c346941438a8fe8d846aee.png)

1. try put this launch command into your .bat file just below the “set http\_proxy=…”, which will launch your comfyui desktop version

```bat
start "comfyui" "%LOCALAPPDATA%\Programs\@comfyorgcomfyui-electron\ComfyUI.exe"

```

---

<div class="post-metadata">

**Author:** ![BeanOne](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BeanOne](https://forum.comfy.org/u/BeanOne)\
**Post date:** [December 6, 2024, 3:50pm UTC](https://forum.comfy.org/t/how-to-set-startup-proxy-parameters-for-the-desktop-version-of-comfyui/742/3 "2024-12-06T15:50:16Z")

</div>

Thx for the suggestion.

I tried the 4th method.

```auto
:: file name: run_comfyui_desktop.bat

set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
set no_proxy=localhost,127.0.0.1

start "comfyui" "%LOCALAPPDATA%\Programs\@comfyorgcomfyui-electron\ComfyUI.exe"
pause

```

And it worked sometimes, but sometimes not work. And it reported some error and I have no idea how to fix it.

 ![屏幕截图 2024-12-06 233428](https://canada1.discourse-cdn.com/flex009/uploads/comfyui1/original/1X/eadbac1d19abdc826c56807f7fe619cab28e190e.png)  
And nother problem is that when I click restart in the ComfyUI Manager Menu, the proxy parameters do not work. I have to close the comgyui window and double-click to open the run\_comfyui\_desktop.bat file again.

When I used the run\_nvidia\_gpu.bat file with the proxy arg, it worked good without any error.  
The first three methods will make the entire system use the proxy and I can not do in that way for some reasons. Therefore, I only edit the run\_nvidia\_gpu.bat file, add the proxy parameter, and only need comfyui to use the proxy.

---

<div class="post-metadata">

**Author:** ![rhuang](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/rhuang/32/21_2.png) [@rhuang](https://forum.comfy.org/u/rhuang)\
**Post date:** [December 6, 2024, 9:13pm UTC](https://forum.comfy.org/t/how-to-set-startup-proxy-parameters-for-the-desktop-version-of-comfyui/742/4 "2024-12-06T21:13:09Z")

</div>

Does it work now? Those errors seem unrelated to the proxy.

---

<div class="post-metadata">

**Author:** ![BeanOne](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BeanOne](https://forum.comfy.org/u/BeanOne)\
**Post date:** [January 2, 2025, 8:43am UTC](https://forum.comfy.org/t/how-to-set-startup-proxy-parameters-for-the-desktop-version-of-comfyui/742/6 "2025-01-02T08:43:45Z")

</div>

```auto
:: file name: run_comfyui_desktop.bat

set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
set no_proxy=localhost,127.0.0.1

start "comfyui" "%LOCALAPPDATA%\Programs\@comfyorgcomfyui-electron\ComfyUI.exe"
pause

```

the 4th method, it work now on the latest version and there’s no error report without reboot.

If I click the restart button in the ComfyUI Manager Menu, the proxy settings are invalid.

So I still hope the proxy parameters are available to set as the runtime args in settings menu of the comfyui desktop version.

Thx All
