Access ComfyUI on LAN: Ports, --listen and Remote Access Guide
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 examplehttp://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 8188You can then access ComfyUI from another device with http://<host-ip-address>:<port>.
Method 1: For ComfyUI Desktop Version
- Open ComfyUI Desktop
- Go to Settings -> Server Configuration
- Find the "Network" section
- Change "Listen Address" from
127.0.0.1to0.0.0.0 - Keep the default port
8000(or change it if needed) - Restart ComfyUI Desktop
After these steps, you can access ComfyUI from other devices on your local network using:
http://<host-ip-address>:8000Replace <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
- Locate your
run_nvidia_gpu.batfile in the ComfyUI folder - Right-click and edit this file
- Find the line that contains
python main.py - Add the
-listenparameter:
python main.py --listen- Save the file and restart ComfyUI
You can then access ComfyUI from other devices using the same URL format:
http://<host-ip-address>:8188Note that the portable version uses port 8188 by default.
Finding Your Local IP Address
On Windows:
Method 1: Using Command Prompt
- Open Command Prompt
- Type
ipconfig - Look for "IPv4 Address" under your network adapter
Method 2: Using Settings (GUI)
- Open Windows Settings
- Go to Network & Internet
- Click on "Properties" under your active network connection
- Find "IPv4 address" in the network properties
On macOS:
Method 1: Using Terminal
- Open Terminal
- Type
ifconfigorip addr - Look for "inet" followed by your IP address
Method 2: Using System Preferences (GUI)
- Click the Apple menu and select "System Preferences"
- Click "Network"
- Select your active connection (Wi-Fi or Ethernet) from the left sidebar
- 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.