How Wendy mesh networking works

Wendy Labs · Wendy Labs Team · November 08, 2026

How Wendy mesh networking works

A camera connects to a nearby computer over Ethernet. A robot reaches that computer over Wi-Fi. A sensor has only Bluetooth. An application needs to communicate across those connections without maintaining its own map of the network.

Wendy Net gives participating devices stable private IPv6 addresses and routes traffic between them. Devices discover nearby peers, authenticate their connections, and exchange routes using Babel. A destination can be several hops away, and each hop can use a different connection type.

Our mesh overview introduces the idea. This article explains the mechanisms behind it and how to enable them.

One network across several connection types

Wendy Net separates the route to a device from the physical connection used for the next hop. Ethernet, infrastructure Wi-Fi, Bluetooth, and supported Wi-Fi Aware radios provide connections between neighbors. The routing layer combines those connections into paths.

Rendering diagram…
An example topology. Each connection joins neighboring participants; a route can cross several connection types. Internet sharing requires a separate opt-in.

In this example, the camera can reach the sensor through the edge computer and robot. It does not need its own Bluetooth connection to the sensor. Actual connection types depend on the hardware, firmware, and enabled settings on both ends.

Discovery finds candidates; certificates admit peers

On Ethernet and ordinary Wi-Fi, Wendy advertises and discovers peers through mDNS. WendyOS peers prefer QUIC over UDP for these links. Native TLS streams support stream peers, including Wendy Lite. Bluetooth and Wi-Fi Aware use their own discovery mechanisms.

A discovery advertisement is a hint about where to connect. Before admitting a neighbor, Wendy verifies its enrolled certificate and complete identity, including its organization. A nearby device cannot join merely by advertising the right name or organization identifier.

Each admitted link is authenticated and encrypted. On QUIC links, a reliable control stream carries directory synchronization while datagrams carry routing messages and IP traffic. TLS stream links multiplex those messages over the authenticated byte stream.

Babel chooses the next hop

Every device has a private IPv6 address derived from its device UUID. That address stays independent of its current LAN address or radio connection.

Wendy's Babel engine exchanges route information with neighbors and selects a next hop for each reachable destination. Paths have costs. For example, the current Ethernet link cost is 64, while infrastructure Wi-Fi costs 128. These are routing preferences, not measurements of internet speed.

Devices do not need a direct connection to every other participant. They learn destinations through neighbors and forward packets along the selected paths. Babel's feasibility rules and sequence numbers handle loop prevention as routes change.

If a link disappears, routing can select another available path. That requires an actual alternative connection through the network. A disconnected island remains disconnected, and recovery takes time. Applications should still handle timeouts and reconnects.

On Linux, the agent applies selected routes to kernel routing tables and exchanges IPv6 packets through TUN interfaces. The CLI and desktop mesh participant use a private gVisor IPv6 stack. The desktop's optional VPN integration makes mesh connectivity available to other applications on the computer.

A neighbor cannot claim every destination

Authenticating a connection answers who the neighbor is. Wendy also checks whether a route announcement is authorized by the destination.

Each destination signs a manifest binding its full identity to its exact IPv6 host route, Babel origin router ID, and origin sequence number. Other devices can relay that proof unchanged. They cannot sign a replacement on behalf of the destination or authorize an arbitrary address range.

Wendy requires a current verified proof before admitting a finite remote route. This binds routing information to the identity that owns it, even when several intermediaries carry the announcement.

Hop encryption and destination authentication have different jobs. Each relay terminates its neighboring encrypted links to forward traffic. Management and Wendy service connections authenticate the destination end to end; an IP source address alone does not grant application authority.

Apps publish services explicitly

Joining the mesh does not expose every port on a device. An application requests mesh networking in wendy.json and declares the ports other participants may access.

For example, this entitlement publishes a container's TCP port 8080 as port 18080:

wendy.json entitlement
{
  "type": "network",
  "mode": "mesh",
  "serviceCIDR": "10.99.0.0/16",
  "ports": [
    { "host": 18080, "container": 8080, "protocol": "tcp" }
  ]
}

Add it to the app's entitlements array and deploy the app. Use the supported service range shown above; it is separate from the device's LAN subnet and the IPv6 routing addresses.

The port mapping permits connections. To announce the service, the app uses its usual mDNS/DNS-SD library on its private interface. Wendy observes eligible announcements, includes service information in signed device manifests, and presents remote services to other mesh apps through their local discovery interface.

A browsing app receives the service address and published port to connect to. It does not need to know which radios or intermediate devices carry the traffic.

Wendy distributes service records across the mesh instead of flooding raw multicast packets. Remote records remain available only while the destination has a reachable route and a current verified manifest. TCP and UDP services are supported through explicit port declarations.

Internet sharing is optional

Local mesh communication and internet access are separate capabilities. A WendyOS device with a healthy independent uplink can offer it to other participants. A device configured to roam can use that gateway when its own independent connection is unavailable, including through intermediate mesh devices.

Sharing and roaming are separate opt-ins. Enabling Bluetooth or Wi-Fi mesh participation does not enable either one. A device cannot offer an uplink that it is already borrowing from the mesh.

The chosen gateway carries internet traffic and DNS. Gateway or uplink changes can interrupt existing sessions. Wendy Lite's mesh configuration does not currently provide the WendyOS sharing and roaming options.

Enable it and check the routes

Enroll your devices in the same Wendy Cloud organization and enable the connection types they share. For WendyOS devices on Ethernet or ordinary Wi-Fi, run this for each device:

wendy net configure --device <device> \
  --participate=true --ethernet=true --infrastructure-wifi=true

Add --ble=true for Bluetooth or --nan=true for supported Wi-Fi Aware hardware. Changing configuration restarts local routing and may interrupt existing connections, so keep a working management connection during setup.

Then inspect the running network:

wendy net status --device <device>
wendy net topology --device <device>

A saved configuration confirms intent. Status and topology show what the device actually observes. Check each participant and test the application connection you intend to use; one device's topology view cannot establish reachability everywhere.

For internet sharing, enable the donor and the roaming device separately:

wendy net configure --device <gateway> \
  --participate=true --share-uplink=true
 
wendy net configure --device <travelling-device> \
  --participate=true --roam=true

Both still need enabled connection types and a working mesh route between them. Start with two devices and a published application service, verify traffic, then add an intermediate device to exercise a multi-hop path. That gives you a concrete way to check discovery, routing, and application access before expanding the network.

Get started

Start with one device. Close the loop around it.

Use WendyOS on your hardware or add Wendy Agent to an existing Linux or Apple Silicon Mac. Connect sensors, run your code, and carry what you learn into the next release.

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.