Privacy & Networking

What Your Devices Announce on the Local Network

August 5, 2026 7 min read Haven Team

Join the WiFi at a cafe and your laptop starts talking before you do. It introduces itself to the whole network by name, lists the services it offers, and asks whether any printers or speakers are nearby. This is how your devices find each other with zero setup, and it is also why anyone else on that network can learn who you are and what you carry.


The machinery behind this is Multicast DNS (mDNS, RFC 6762) paired with DNS-based Service Discovery (DNS-SD, RFC 6763). On Apple platforms it is branded Bonjour; on Linux it is usually Avahi; Android and Windows have their own implementations. Together they are the reason a new printer, a Chromecast, or a shared drive simply shows up without you typing an IP address. The convenience is real. So is the exposure, because the design broadcasts to everyone rather than asking privately.

How Local Discovery Works

Regular DNS sends a question to a specific server. mDNS instead multicasts the question to a group address, 224.0.0.251 for IPv4 or ff02::fb for IPv6, on UDP port 5353, and every device on the local segment receives it. Names live in the special .local domain and resolve without any central server. When your phone wants to find a printer, it multicasts a query; printers that hear it multicast back their details; every other device on the network hears both halves of that exchange.

DNS-SD layers structured service discovery on top. A device advertises records describing the services it offers, AirPlay, file sharing, remote login, printing, each with a human-readable instance name and a set of properties. The upshot is that a passive listener does not need to probe anything. It just watches the multicast traffic and collects a directory of who is present and what they run.

What Actually Leaks

Three kinds of information fall out of normal mDNS activity, and the first is the one that surprises people.

Your name

Device hostnames are set by default to something like "Jordan's iPhone" or "Alex-MacBook-Pro." That string is broadcast in the clear. Sit on the WiFi at an airport lounge or a coworking space and enumerate the .local names, and you often get a roster of first names, and sometimes full names, of the people in the room. For anyone practicing basic operational awareness, handing your real name to every stranger on the network is a poor default.

Your device profile

The advertised services fingerprint your hardware and software: model hints, the operating system, which apps are running discovery, whether remote login or file sharing is enabled. That profile tells an attacker which vulnerabilities might be worth trying, and it distinguishes your particular device from the others nearby.

A stable identifier across locations

This is the subtle one. Operating systems have spent years randomizing WiFi MAC addresses to stop networks from recognizing a device between visits, a topic we covered in MAC address randomization. But if your hostname and your set of advertised service instances stay constant, they form a fingerprint that survives the MAC change. Researchers studying Bonjour-style discovery have shown that these stable upper-layer identifiers can re-link a device across networks even when the lower-layer address rotates, which quietly undermines the whole point of randomization.

The core issue

MAC randomization hides the device at the network layer, but mDNS and DNS-SD re-expose a stable name and service fingerprint one layer up. Randomizing the address while broadcasting a constant hostname is like wearing a mask with your name printed on it.

It Is Also an Attack Surface

Leakage is the passive risk. There is an active one too. Because mDNS resolution trusts whoever answers first on the local segment, an attacker on the same network can respond to name queries with their own address, redirecting a victim's connection. This is the same family of local-name-resolution abuse we described in LLMNR and NBT-NS poisoning, and mDNS belongs in the same threat category on untrusted networks: convenient auto-discovery is also convenient impersonation.

How to Quiet It Down

You do not have to disable local discovery entirely, though you can where you never use it. The higher-value moves reduce what you broadcast and where.

Step Effect
Rename your device Set the hostname to something non-identifying instead of your name. The single easiest win, and it removes the roster leak on every network you join.
Turn off unused sharing Disable file sharing, media sharing, remote login, and receiver features when you are not using them. Fewer advertised services means a smaller fingerprint and fewer live targets.
Limit discovery on untrusted WiFi Set AirDrop and similar features to receiving-off or contacts-only. A host firewall that drops outbound UDP 5353 on public networks stops the broadcasts while you are exposed.
Isolate clients on your own network Enable AP or client isolation so devices cannot see each other, and put untrusted gear on a separate VLAN, as in home network segmentation.

Renaming the device alone closes the most direct privacy gap for most people. The sharing and firewall steps matter most on networks you do not control, which is exactly where the audience is unknown. We covered the wider set of risks on shared connections in public WiFi and hotel network security.

The Layer Discovery Cannot See

Local discovery operates on names and service records, the envelope of your presence on a network. It does not, on its own, read the contents of what your applications send, provided those applications encrypt properly. This is the practical reason transport and end-to-end encryption matter even on a hostile local network: a listener can learn that your device is present and what it advertises, but a well-encrypted message stays unreadable to everyone but its recipient.

Reducing what you broadcast and encrypting what you send are two different jobs. Quieting mDNS shrinks the metadata you leak to the room. Strong end-to-end encryption, which is the part we build, keeps the substance of your communication private regardless of who is sharing the WiFi.

Try Haven free for 15 days

Encrypted email and chat in one app. No credit card required.

Get Started →