Closed rnovacek closed 1 year ago
It seems to be possible to send the discovery directly to the IP address of the device. It works with default firewall settings:
nc -u 192.168.1.110 7000
{"t": "scan"}
Gets this response:
{"t":"pack","i":1,"uid":0,"cid":"f4911ec22080","tcid":"222996f2e147","pack":"..."}
Yes, Gree device seem to work with either broadcast or direct IP connection.
I believe it will always reply from source port 7000, but I can only base this on my device, and there is nothing technically wrong with a response from any port.
I'm running Fedora 36 with firewalld and I cannot get discovery to work, it's blocked by the firewall.
When I enable logging using
sudo firewall-cmd --set-log-denied=all
, I can see this line when running discovery:Given that the port for incoming data is assigned dynamically every time, I cannot set up a rule in the firewall. So I tried setting fixed port on this line and allowing that in firewalld (
firewall-cmd --zone=public --add-port XXX/udp
). Then the discovery works.Any ideas how we can use some stable port number and prevent collision with already open ports, so the readme can describe what's needed for the discovery?