esp-homekit icon indicating copy to clipboard operation
esp-homekit copied to clipboard

Reason using PORT 5556

Open anuarrozman opened this issue 1 year ago • 3 comments

Hii, I would like to ask about PORT you are using. Is there any specific reason you are using PORT = 5556 ?

This is located inside esp-homekit/src/server.c

#define PORT 5556

anuarrozman avatar Jun 21 '23 16:06 anuarrozman

I would say the correct port is 661 since the protocol is HAP and that name is registered as such on https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?&page=13 . But anyhow, any number will work since that is the point of the mdns system.

HomeACcessoryKid avatar Jun 21 '23 17:06 HomeACcessoryKid

Thank you for your reply. If there's two devices with same port number, is it gonna be a problem ? Like suddenly undiscoverable.

anuarrozman avatar Jun 21 '23 18:06 anuarrozman

Two devices will have unique IP addresses, so it should not be a problem.

maximkulkin avatar Jul 10 '23 05:07 maximkulkin