python main.py --listen 0.0.0.0

Category: AI/ML Tooling

python main.py --listen 0.0.0.0

Expose ComfyUI to the network

Binds the ComfyUI server to all interfaces so other machines can open the UI and submit workflows, but also lets anyone on the network run arbitrary Python through custom nodes, which is effectively remote code execution. Only do this on trusted networks, ideally behind a reverse proxy with authentication. The default --listen 127.0.0.1 stays local-only.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.