{"action":"created","issue":{"url":"https://api.github.com/repos/jmdns/jmdns/issues/168","repository_url":"https://api.github.com/repos/jmdns/jmdns","labels_url":"https://api.github.com/repos/jmdns/jmdns/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/jmdns/jmdns/issues/168/comments","events_url":"https://api.github.com/repos/jmdns/jmdns/issues/168/events","html_url":"https://github.com/jmdns/jmdns/issues/168","id":365388005,"node_id":"MDU6SXNzdWUzNjUzODgwMDU=","number":168,"title":"JmDNS is not working in Android Oreo 8.x","user":{"login":"teocci","id":2992258,"node_id":"MDQ6VXNlcjI5OTIyNTg=","avatar_url":"https://avatars1.githubusercontent.com/u/2992258?v=4","gravatar_id":"","url":"https://api.github.com/users/teocci","html_url":"https://github.com/teocci","followers_url":"https://api.github.com/users/teocci/followers","following_url":"https://api.github.com/users/teocci/following{/other_user}","gists_url":"https://api.github.com/users/teocci/gists{/gist_id}","starred_url":"https://api.github.com/users/teocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teocci/subscriptions","organizations_url":"https://api.github.com/users/teocci/orgs","repos_url":"https://api.github.com/users/teocci/repos","events_url":"https://api.github.com/users/teocci/events{/privacy}","received_events_url":"https://api.github.com/users/teocci/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-01T09:57:11Z","updated_at":"2018-10-10T00:45:21Z","closed_at":null,"author_association":"NONE","body":"I have a working on an app which register custom services using JmDNS. It seems that the library stopped working on devices with Android 8.x.\r\n\r\nMy constructor is:\r\n```\r\ntry {\r\n    jmDNS = JmDNS.create(obtainIPv4Address(info));\r\n} catch (IOException e) {\r\n    LogHelper.e(TAG, \"Error in JmDNS creation: \" + e);\r\n}\r\n```\r\n\r\nAnd my method to register the service is:\r\n```\r\npublic void registerService()\r\n{\r\n    Log.e(TAG, \"registerService\");\r\n\r\n    unregisterService();\r\n\r\n    final String serviceName = getDeviceID(context.getContentResolver());\r\n    final ServiceInfo serviceInfo = ServiceInfo.create(SERVICE_TYPE, serviceName, DEFAULT_RTSP_PORT, stationName);\r\n\r\n    new JmDNSTask(jmDNS, serviceInfo, this).execute();\r\n}\r\n```\r\n\r\nAre there any known issues or even known fixes? I didn't get any error."},"comment":{"url":"https://api.github.com/repos/jmdns/jmdns/issues/comments/428400035","html_url":"https://github.com/jmdns/jmdns/issues/168#issuecomment-428400035","issue_url":"https://api.github.com/repos/jmdns/jmdns/issues/168","id":428400035,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODQwMDAzNQ==","user":{"login":"teocci","id":2992258,"node_id":"MDQ6VXNlcjI5OTIyNTg=","avatar_url":"https://avatars1.githubusercontent.com/u/2992258?v=4","gravatar_id":"","url":"https://api.github.com/users/teocci","html_url":"https://github.com/teocci","followers_url":"https://api.github.com/users/teocci/followers","following_url":"https://api.github.com/users/teocci/following{/other_user}","gists_url":"https://api.github.com/users/teocci/gists{/gist_id}","starred_url":"https://api.github.com/users/teocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teocci/subscriptions","organizations_url":"https://api.github.com/users/teocci/orgs","repos_url":"https://api.github.com/users/teocci/repos","events_url":"https://api.github.com/users/teocci/events{/privacy}","received_events_url":"https://api.github.com/users/teocci/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T00:45:21Z","updated_at":"2018-10-10T00:45:21Z","author_association":"NONE","body":"> @teocci I am facing the same issue. Did you find any thing ?\r\n\r\nI fixed this by using this constructor:\r\n```\r\ntry {\r\n    jmDNS = JmDNS.create(InetAddress.getByName(obtainIPv4Address(info)), HOST_NAME);\r\n} catch (IOException e) {\r\n    LogHelper.e(TAG, \"Error in JmDNS creation: \" + e);\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"teocci"}}