krita-ai-diffusion
krita-ai-diffusion copied to clipboard
Allow plugin-hosted ComfyUI Server to listen on all interfaces
The ComfyUI instance started via this plugin currently only listens on localhost. This way, it is not reachable from other clients in the same network. If it would listen on all interfaces (--listen 0.0.0.0), it would also be available for other clients in the network, for example when working from a laptop, but wanting to use a desktop PC with strong GPU for the models.
This could be solved in two ways: Either always listen on all interfaces, which is simple, but might pose some kind of security risk, or add an optional checkbox to the UI which enables the listening on all interfaces. Before I open a PR with an implementation of either of this, I want to open the discussion on which method would be best for the plugin.
I don't like listen on all interfaces by default , it also tends to give omnious firewall popups.
You can add --listen to the server_arguments in ai_diffusion/settings.json. You will then run into #130, requires a small fix until merged.
If you want to add a UI, it would be nice if it showed the network IP once the server is up (not sure how easy it is to get).
☑ Share server with other devices on the network [Active: 192.168.42.1]