This project is read-only.

Service disappears from Bonjour browser

May 11, 2010 at 10:44 PM

Hi neonp,

Very happy to have found this project!!

I hacked up the example from mDNSReader to register as http (minus the correct params of course):

  Service s = new Service();
  s.AddAddress(new Network.Dns.EndPoint() { DomainName = "ASPERGE.local.", Port = 50508, Addresses = new List<IPAddress>() { IPAddress.Parse("192.168.1.19") } });
            s.Protocol = "_http._tcp.local.";
            s.Name = "MyName";
            s.HostName = "ASPERGE.local.";
            s["DvNm"] = "PC Remote";
            s["RemV"] = "10000";
            s["DvTy"] = "iPod";
            s["RemN"] = "Remote";
            s["txtvers"] = "1";
            s["Pair"] = "0000000000000001";
            s.Publish();
            Thread.Sleep(3600000);
            s.Stop();

The service briefly shows up on the Bonjour service browser provided by Apple and then disappears. Could you post a _http._tcp service registration example?