SebuZet / samsungrac

Home Assistant Climate Device for controlling (not only) Samsung AC
65 stars 31 forks source link

Ports 8888 and 2787 closed, random ports open #30

Open jamiekris opened 3 years ago

jamiekris commented 3 years ago

Hi,

I am trying to get this integration working with a new Samsung AC, (AR12TXFYAWKXEU) and it seems impossible to get the token with the suggested method, with a constant connection refused error. I tried to dig a bit deeper into this and running NMAP from to the AC's IP shows that neithtr 8888 or 2787 are open. There seems to be one random port open which seems to change after a few hours, therefore not very predictable. Also, tried to use the server.py and actest.py on the open port, however, no luck on that front as well.

Has anyone faced similar issues with quite new AC models?

ropmip commented 3 years ago

Yes, having the same issue with a new AR24TXFYAWKN.

Arise commented 1 year ago

How did you find that random open port?

I have a Samsung Cebu (AR12TXFYAWKNEU/AR12TXFYAWKXEU).

At first I wasnt able to find even the IP address of the air conditioner unit, but then pressing the timer button for 3 seconds allowed me to put the air conditioner unit in AP mode. Used wifi analyzer android app to find the new AP and its MAC Address. With that I've added it in my router DHCP list and I got finally an IP.

But now I'm stuck at the port part.

Arise commented 1 year ago

For people looking to investigate and searching for open ports on those new AC units, I found out those use OCF.

You can get some more details with OCF Spy installed, you can see here the open port (49154?!?), how to connect to it in order to get more data. But it looks like commands to switch on/off the air conditioner are only processed from the internet side, through smartthings api.

OCF_Spy