Comments (2)
/**
* Created by crazy on 17-4-27.
*/
var bonjourService = require('bonjour')()
console.log("Starting bonjour service...");
var bonjourService = bonjourService.publish({ name: 'agendaserver', type: 'http', port: 8080 });
bonjourService.start();
bonjourService.on('up', function () {
console.log("Started bonjour service on " + bonjourService.fqdn + ":" + bonjourService.port);
// => Started bonjour service on agendaserver._http._tcp.local:8080
console.log("published = " + bonjourService.published) // => true
});
Today I use this lib ,and read source code.so I test Your code in Linux Mint 18.1.
Starting bonjour service...
Started bonjour service on agendaserver._http._tcp.local:8080
published = true
Test OK.What system that You use
But In fact I also get same result by "avahi-discover"
Error: org.freedesktop.Avahi.DNSNXDOMAIN: DNS failure: NXDOMAIN
@watson Did you test it OK?
from bonjour.
This is My Second Day Try to solve it .
I use avahi to publish my service,that OK.
bu use bonjour this lib to publish my service seems ok,but could not get IpAddress.It seem lost enps0 interface.
@Cir0X Did you solve it
from bonjour.
Related Issues (20)
- Configurable publish service announcement HOT 1
- how can I reset the search?
- Server does not respond to _services._dns-sd._udp. meta-query HOT 1
- doesn't work with udp ?
- Filter on txt object
- How to use update
- Goodbye message wasn't sent HOT 2
- When creating Bonjour on Windows, MacOSx + iOS is unable to resolve the service HOT 1
- Not finding devices on Windows 10 HOT 7
- Finding service on wired and wireless interface HOT 1
- CVE-2021-23386: out-dated dns-packet dependency --> update multicast-dns HOT 15
- multicast-dns upgrade needed to address CVE HOT 1
- Don't work on Oracle Linux 8
- Vulnerability in package
- Deprecate package in favor of bonjour-service?
- Bonjour publish error at TicksAndRejections
- Bonjour is throwing error in Electron js HOT 3
- Program crashing because of server module (through multicastdns) throwing EADDRNOTAVAIL HOT 3
- Service.prototype._records violates protocol specification (RFC 6762 "Multicast DNS")
- Deprecate this package and tell users to use bonjour-service instead HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bonjour.