ComfyUI's default port is 8188, bound to 127.0.0.1, so the UI is at http://127.0.0.1:8188 and only the machine itself can reach it.
Change the port
python main.py --port 8190
Let other machines connect
By default ComfyUI listens only on 127.0.0.1. The --listen flag takes an address; with no argument it listens on all IPv4 and IPv6 addresses:
python main.py --listen 0.0.0.0 --port 8188
ComfyUI's security policy is explicit that the localhost default is part of its threat model: anyone who can reach the ComfyUI URL is trusted, and exposing it with --listen makes securing it (firewall, reverse proxy, authentication) your responsibility. Do not open the port to the internet without something in front of it.
The same port serves the HTTP API: see how to use the ComfyUI API. For a first run, see how to use ComfyUI.
If you would rather not set the machine up yourself, the ComfyUI template on Aquanode provisions the box, installs ComfyUI and starts it when you deploy it; once the deployment is Ready, the Overview tab shows the ComfyUI URL.
Sources
- ComfyUI cli_args.py (--port, --listen). github.com
- ComfyUI SECURITY.md. github.com