maximkulkin / esp-homekit

Apple HomeKit accessory server library for ESP-OPEN-RTOS
MIT License
1.1k stars 168 forks source link

Reason using PORT 5556 #214

Open anuarrozman opened 1 year ago

anuarrozman commented 1 year ago

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

HomeACcessoryKid commented 1 year ago

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.

anuarrozman commented 1 year ago

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

maximkulkin commented 12 months ago

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