Git Product home page Git Product logo

Comments (2)

Talbot3 avatar Talbot3 commented on August 15, 2024
/**
 * 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.

Talbot3 avatar Talbot3 commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.