Access ComfyUI on LAN: Ports, --listen and Remote Access Guide

ComfyUI Wiki

Access ComfyUI from any device on your local network. Default ports 8188 (portable) and 8000 (Desktop), --listen 0.0.0.0 setup, finding your IP, and changing the port.

There are two ways to access ComfyUI from your local network, depending on which version you are using:

Which Port Does ComfyUI Use?

ComfyUI listens on a different default port depending on the version:

  • Portable and manual CLI installs: port 8188 (for example http://192.168.1.100:8188)
  • ComfyUI Desktop: port 8000

To use a different port, add the --port parameter when starting ComfyUI:

python main.py --listen --port 8188

You can then access ComfyUI from another device with http://<host-ip-address>:<port>.

Method 1: For ComfyUI Desktop Version

  1. Open ComfyUI Desktop
  2. Go to Settings -> Server Configuration
  3. Find the "Network" section
  4. Change "Listen Address" from 127.0.0.1 to 0.0.0.0
  5. Keep the default port 8000 (or change it if needed)
  6. Restart ComfyUI Desktop

After these steps, you can access ComfyUI from other devices on your local network using:

http://<host-ip-address>:8000

Replace <host-ip-address> with your computer's local IP address (e.g., 192.168.1.100).

For more details on server configuration, check here

Method 2: For ComfyUI Portable Version

  1. Locate your run_nvidia_gpu.bat file in the ComfyUI folder
  2. Right-click and edit this file
  3. Find the line that contains python main.py
  4. Add the -listen parameter:
python main.py --listen
  1. Save the file and restart ComfyUI

You can then access ComfyUI from other devices using the same URL format:

http://<host-ip-address>:8188

Note that the portable version uses port 8188 by default.

Finding Your Local IP Address

On Windows:

Method 1: Using Command Prompt

  1. Open Command Prompt
  2. Type ipconfig
  3. Look for "IPv4 Address" under your network adapter

Method 2: Using Settings (GUI)

  1. Open Windows Settings
  2. Go to Network & Internet
  3. Click on "Properties" under your active network connection
  4. Find "IPv4 address" in the network properties

On macOS:

Method 1: Using Terminal

  1. Open Terminal
  2. Type ifconfig or ip addr
  3. Look for "inet" followed by your IP address

Method 2: Using System Preferences (GUI)

  1. Click the Apple menu and select "System Preferences"
  2. Click "Network"
  3. Select your active connection (Wi-Fi or Ethernet) from the left sidebar
  4. Your IP address will be displayed in the status area on the right

Security Considerations

  • This setup makes ComfyUI accessible to all devices on your local network
  • Only enable this if you trust all devices/users on your network
  • Consider using the HTTPS setup for better security
  • You can restrict access by configuring your firewall settings

Comments

Sign in with GitHub to join the discussion.

Loading comments…