Skip to content

Hostname conflict on macOS #410

@anlumo

Description

@anlumo

Not sure if this is even fixable.

When I publish a service running on macOS with this crate using the real hostname (obtained using the hostname crate for example), the operating system detects a duplicate hostname on the network and renames the host itself (so if the old name was "foo.local", it's renaming it to "foo-2.local").

I guess this is because Apple's implementation detects mdns-sd's broadcast packet containing the hostname and thinks that it's from a different host.

Unfortunately, this makes this crate pretty much unusable on macOS/iOS. For now, I'm just appending a prefix to the hostname so it doesn't conflict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions