Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reason using PORT 5556 #214

Open
anuarrozman opened this issue Jun 21, 2023 · 3 comments
Open

Reason using PORT 5556 #214

anuarrozman opened this issue Jun 21, 2023 · 3 comments

Comments

@anuarrozman
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

@maximkulkin
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants