Title: Unreliable discovery on iOS · Issue #1196 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: Unreliable discovery on iOS · Issue #1196 · python-zeroconf/python-zeroconf
X Title: Unreliable discovery on iOS · Issue #1196 · python-zeroconf/python-zeroconf
Description: Hi, I realize iOS is probably not officially supported and this is a long shot. I'm using Pythonista on iOS to run a discovery script with zeroconf 0.71.0. The code is slightly modified from the README example (but the modifications are ...
Open Graph Description: Hi, I realize iOS is probably not officially supported and this is a long shot. I'm using Pythonista on iOS to run a discovery script with zeroconf 0.71.0. The code is slightly modified from the RE...
X Description: Hi, I realize iOS is probably not officially supported and this is a long shot. I'm using Pythonista on iOS to run a discovery script with zeroconf 0.71.0. The code is slightly modified from th...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/1196
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unreliable discovery on iOS","articleBody":"Hi, I realize iOS is probably not officially supported and this is a long shot.\r\n\r\nI'm using `Pythonista` on iOS to run a discovery script with zeroconf `0.71.0`. The code is slightly modified from the README example (but the modifications are irrelevant). I have both a Windows and MacOS machine advertising separate services on a home network.\r\n\r\nI'm observing results all over the place. At least 9/10 times my advertised services are not discovered (I added a 120 second timeout). I have observed a handful of times it is able to discover it. It's not obvious to me why it's sporadic.\r\n\r\n# Debugging\r\n\r\nI enabled debug logging and in all runs (discoverable or not) there are these errors:\r\n```\r\nDEBUG:zeroconf:Error with socket 8 (('192.168.86.39', 5353))): [Errno 65] No route to host\r\nTraceback (most recent call last):\r\n File \"/var/containers/Bundle/Application/{UUID}/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/asyncio/selector_events.py\", line 1054, in sendto\r\n self._sock.sendto(data, addr)\r\nOSError: [Errno 65] No route to host\r\n```\r\n\r\nTesting the Windows + MacOS communicating with each other works flawlessly though.\r\n\r\nI also tried using an iOS app, `HE.NET Network Tools`, which also does some service discovery with Bonjour, and it discovered my advertised services consistently.\r\n\r\nNot sure how relevant this is but I printed out `zeroconf.cache.names()` after `120 seconds` of discovery, and the results are surprisingly different almost every time. I have maybe 2 dozen discoverable services (apple devices, TVs, etc), and they aren't consistently discovered. However running the discovery script on a computer is perfectly consistent.\r\n\r\nSo it sounds like either there's some networking issue with `Pythonista`, or a discrepancy in implementation between `zeroconf` and iOS' `bonjour`. Would anyone have any ideas on how to debug further? Thanks!!","author":{"url":"https://github.com/jpan127","@type":"Person","name":"jpan127"},"datePublished":"2023-07-18T04:34:38Z","url":"https://github.com/python-zeroconf/python-zeroconf/issues/1196"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:989c2c52-bdd0-2a56-a3aa-6e2c95a9bb03 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E350:326AD2:AE9E:EA6D:6B007D38 |
| html-safe-nonce | e8ed8a80695fb538d278a02f8ffc3e5e3e37057850af79887d060eac4cfb8645 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzUwOjMyNkFEMjpBRTlFOkVBNkQ6NkIwMDdEMzgiLCJ2aXNpdG9yX2lkIjoiMTM4MDcyMDc5OTM0NTgzNTMyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ec7c44712e0cc9602d28f0868ac91e4c4fc698b126fe213ccfe747a4ad2119c2 |
| hovercard-subject-tag | issue:1809069429 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-zeroconf/python-zeroconf/1196/issue_layout |
| twitter:image | https://opengraph.githubassets.com/884ac2d873b9f250550092382a175c196a5d2e2cad282dd191fad0d024a91099/python-zeroconf/python-zeroconf/issues/1196 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/884ac2d873b9f250550092382a175c196a5d2e2cad282dd191fad0d024a91099/python-zeroconf/python-zeroconf/issues/1196 |
| og:image:alt | Hi, I realize iOS is probably not officially supported and this is a long shot. I'm using Pythonista on iOS to run a discovery script with zeroconf 0.71.0. The code is slightly modified from the RE... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jpan127 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git |
| octolytics-dimension-user_id | 120192235 |
| octolytics-dimension-user_login | python-zeroconf |
| octolytics-dimension-repository_id | 21548731 |
| octolytics-dimension-repository_nwo | python-zeroconf/python-zeroconf |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21548731 |
| octolytics-dimension-repository_network_root_nwo | python-zeroconf/python-zeroconf |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1bc2aa1939001689f5ce935982c10a6138f745c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width