Title: No service found under Windows but working under Ubuntu VM. · Issue #84 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: No service found under Windows but working under Ubuntu VM. · Issue #84 · python-zeroconf/python-zeroconf
X Title: No service found under Windows but working under Ubuntu VM. · Issue #84 · python-zeroconf/python-zeroconf
Description: I am facing some issues in setting up a client/ServiceBrowser that works under both Win and Linux. I have the following set-up: Win 7 connected to domain Ethernet config uses IPv4 with Subnet Mask 255.255.255.0 Ubuntu VM running on the s...
Open Graph Description: I am facing some issues in setting up a client/ServiceBrowser that works under both Win and Linux. I have the following set-up: Win 7 connected to domain Ethernet config uses IPv4 with Subnet Mask ...
X Description: I am facing some issues in setting up a client/ServiceBrowser that works under both Win and Linux. I have the following set-up: Win 7 connected to domain Ethernet config uses IPv4 with Subnet Mask ...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/84
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No service found under Windows but working under Ubuntu VM.","articleBody":"I am facing some issues in setting up a client/ServiceBrowser that works under both Win and Linux.\n\nI have the following set-up:\n- Win 7 connected to domain\n - Ethernet config uses IPv4 with Subnet Mask 255.255.255.0\n- Ubuntu VM running on the same system in Oracle VirtualBox with Win Ethernet as Bridged Adapter \n `enp0s3 Link encap:Ethernet HWaddr 08:00:27:55:62:63 \n inet addr:10.121.44.95 Bcast:10.121.44.255 Mask:255.255.255.0\n inet6 addr: fe80::aa6b:92c:17c4:cfc8/64 Scope:Link\n UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\n RX packets:1837029 errors:0 dropped:0 overruns:0 frame:0\n TX packets:110395 errors:0 dropped:0 overruns:0 carrier:0\n collisions:0 txqueuelen:1000 \n RX bytes:467243091 (467.2 MB) TX bytes:7871423 (7.8 MB)`\n- The broadcasting systems are running on different Debian systems connected to the network domain\n\nIf I run the ServiceBrowser from Windows I don't get any return back. I used the example Browser to test the set-up.\n`from zeroconf import ServiceBrowser, Zeroconf\n\nclass MyListener(object):\n\n```\ndef remove_service(self, zeroconf, type, name):\n print(\"Service %s removed\" % (name,))\n\ndef add_service(self, zeroconf, type, name):\n info = zeroconf.get_service_info(type, name)\n print(\"Service %s added, service info: %s\" % (name, info))\n```\n\nzeroconf = Zeroconf()\nlistener = MyListener()\nbrowser = ServiceBrowser(zeroconf, \"_tntsrv._tcp.local.\", listener)\ntry:\n input(\"Press enter to exit...\\n\\n\")\nfinally:\n zeroconf.close()`\nRunning from withing Ubuntu, it returns all the available services (as expected).\n\nI noticed that if I change `HOST_ONLY_NETWORK_MASK` from `255.255.255.255` to `255.255.255.0` the opposite happens, where it works under Windows but not under Ubuntu.\n\nThis seems to ocurr in line 1603\n`if addr.get('netmask') != HOST_ONLY_NETWORK_MASK`\n\nI'm not experienced enough to find a common ground, but is there any posibility so that it'll work under both systems?\n","author":{"url":"https://github.com/basic-settings","@type":"Person","name":"basic-settings"},"datePublished":"2016-09-28T11:26:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/84/python-zeroconf/issues/84"}
| 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:3f5babf2-8015-ffbe-14b3-57db218d2627 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0CA:30581F:3BC3E19:5063C5E:69731FDF |
| html-safe-nonce | 54ce56d575c493ca147d2e05e69ed0bd4bb4595b3cee0b9ce67cc113fb2f8c0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMENBOjMwNTgxRjozQkMzRTE5OjUwNjNDNUU6Njk3MzFGREYiLCJ2aXNpdG9yX2lkIjoiNDg1NDQ3MjEyOTA3MzMyMzk5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 49858b67f93d878f46afc4a06b34c23a498adcb70c1d4ca2461c61bf65abebfa |
| hovercard-subject-tag | issue:179746956 |
| 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/84/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fed8175b7160f95d79c525a9d65d8e8187bc2dffedbff71c431962de7f62afb0/python-zeroconf/python-zeroconf/issues/84 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fed8175b7160f95d79c525a9d65d8e8187bc2dffedbff71c431962de7f62afb0/python-zeroconf/python-zeroconf/issues/84 |
| og:image:alt | I am facing some issues in setting up a client/ServiceBrowser that works under both Win and Linux. I have the following set-up: Win 7 connected to domain Ethernet config uses IPv4 with Subnet Mask ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | basic-settings |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| 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 | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width