Skip to content

An example project to set up a local service and advertise it over Avahi/mDNS.

License

Notifications You must be signed in to change notification settings

balena-io-experimental/balena-mdns-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resin-mdns-service

An example project to set up local services and advertise them over Avahi/mDNS. It installs the Avahi daemon within the user container, and sets up two example services as shown below.

Important: this will only work with resinOS 1.x devices! On resinOS 2.x the system comes with Avahi, and instead of this project, you should see resin-avahi-dbus for an example how to communicate with the system Avahi over dbus.

TCP

A "Quote of the Day" service exposed on port 17 over TCP. You can test it by running

nc <device-hostname>.local 17

UDP

An Echo service exposed on port 7 over UDP. Can test it by running

date | nc -u <device-hostname>.local 7

See more examples of Avahi services in the ArchLinux Wiki.

License

Apache 2.0, see LICENSE.

About

An example project to set up a local service and advertise it over Avahi/mDNS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published