How to Access ComfyUI from Local Network
Learn how to set up ComfyUI server for local network access in both Portable and Desktop versions
There are two ways to access ComfyUI from your local network, depending on which version you are using:
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