{"action":"created","issue":{"url":"https://api.github.com/repos/kmpm/node-mdns-js/issues/39","labels_url":"https://api.github.com/repos/kmpm/node-mdns-js/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/kmpm/node-mdns-js/issues/39/comments","events_url":"https://api.github.com/repos/kmpm/node-mdns-js/issues/39/events","html_url":"https://github.com/kmpm/node-mdns-js/pull/39","id":86147124,"number":39,"title":"Apple-TV Fix","user":{"login":"sasanj","id":2305614,"avatar_url":"https://avatars.githubusercontent.com/u/2305614?v=3","gravatar_id":"","url":"https://api.github.com/users/sasanj","html_url":"https://github.com/sasanj","followers_url":"https://api.github.com/users/sasanj/followers","following_url":"https://api.github.com/users/sasanj/following{/other_user}","gists_url":"https://api.github.com/users/sasanj/gists{/gist_id}","starred_url":"https://api.github.com/users/sasanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sasanj/subscriptions","organizations_url":"https://api.github.com/users/sasanj/orgs","repos_url":"https://api.github.com/users/sasanj/repos","events_url":"https://api.github.com/users/sasanj/events{/privacy}","received_events_url":"https://api.github.com/users/sasanj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-08T11:58:12Z","updated_at":"2015-06-08T15:28:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kmpm/node-mdns-js/pulls/39","html_url":"https://github.com/kmpm/node-mdns-js/pull/39","diff_url":"https://github.com/kmpm/node-mdns-js/pull/39.diff","patch_url":"https://github.com/kmpm/node-mdns-js/pull/39.patch"},"body":"Apple-TV ( and maybe some other devices ) answer the queries, using multicast, regardless of the source address of the query. That is why the library could not pickup replies from Apple-TV.\r\nHere is the reply I get on my network, using this patch:\r\n```\r\n    data: { addresses: [ '192.168.0.3' ],\r\n      query: [ '_services._dns-sd._udp.local' ],\r\n      type:\r\n      [ { name: 'http',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: 'Web Site' } ],\r\n      interfaceIndex: 0,\r\n      networkInterface: 'en4' }\r\n    data: { addresses: [ '192.168.0.2' ],\r\n      query: [ '_services._dns-sd._udp.local' ],\r\n      type:\r\n       [ { name: 'workstation',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: 'Workstation' },\r\n         { name: 'http',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: 'Web Site' },\r\n         { name: 'afpovertcp',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: 'Apple File Sharing' },\r\n         { name: 'device-info',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: undefined } ],\r\n      interfaceIndex: 0,\r\n      networkInterface: 'en4' }\r\n    data: { addresses: [ '192.168.0.195' ],\r\n     query: [],\r\n      type:\r\n       [ { name: 'appletv-v2',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: undefined },\r\n         { name: 'touch-able',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: 'iPod Touch Music Library' },\r\n         { name: 'airplay',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: undefined },\r\n         { name: 'raop',\r\n           protocol: 'tcp',\r\n            subtypes: [],\r\n           description: 'AirTunes Remote Audio' },\r\n         { name: 'raop',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: 'AirTunes Remote Audio' },\r\n         { name: 'airplay',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: undefined },\r\n         { name: 'touch-able',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: 'iPod Touch Music Library' },\r\n         { name: 'appletv-v2',\r\n           protocol: 'tcp',\r\n           subtypes: [],\r\n           description: undefined } ],\r\n      host: 'Apple-TV.local',\r\n      interfaceIndex: 1,\r\n      networkInterface: 'pseudo multicast' }\r\n```\r\nAs you can see, the apple-tv answer comes back on the  `pseudo multicast`, even as the code shows, the request is sent only on `en4`."},"comment":{"url":"https://api.github.com/repos/kmpm/node-mdns-js/issues/comments/110041861","html_url":"https://github.com/kmpm/node-mdns-js/pull/39#issuecomment-110041861","issue_url":"https://api.github.com/repos/kmpm/node-mdns-js/issues/39","id":110041861,"user":{"login":"sasanj","id":2305614,"avatar_url":"https://avatars.githubusercontent.com/u/2305614?v=3","gravatar_id":"","url":"https://api.github.com/users/sasanj","html_url":"https://github.com/sasanj","followers_url":"https://api.github.com/users/sasanj/followers","following_url":"https://api.github.com/users/sasanj/following{/other_user}","gists_url":"https://api.github.com/users/sasanj/gists{/gist_id}","starred_url":"https://api.github.com/users/sasanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sasanj/subscriptions","organizations_url":"https://api.github.com/users/sasanj/orgs","repos_url":"https://api.github.com/users/sasanj/repos","events_url":"https://api.github.com/users/sasanj/events{/privacy}","received_events_url":"https://api.github.com/users/sasanj/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T15:28:55Z","updated_at":"2015-06-08T15:28:55Z","body":"I tested it on Linux and Mac OSX and it works. On OSX, bonjour is always running. But on Linux I'm not sure. Does ubuntu run avahi? I can check, but it takes time."}}