René's URL Explorer Experiment


Title: Service discovery on specific IPv6 interface · Issue #1132 · python-zeroconf/python-zeroconf · GitHub

Open Graph Title: Service discovery on specific IPv6 interface · Issue #1132 · python-zeroconf/python-zeroconf

X Title: Service discovery on specific IPv6 interface · Issue #1132 · python-zeroconf/python-zeroconf

Description: Not sure if this is a bug or I am using the API wrong. Please advise. This is all IPv6-only network. I have a host with say three network interfaces : eth0, eth1 and eth2 - and I want to listen to advertisements coming only from eth1. My...

Open Graph Description: Not sure if this is a bug or I am using the API wrong. Please advise. This is all IPv6-only network. I have a host with say three network interfaces : eth0, eth1 and eth2 - and I want to listen to ...

X Description: Not sure if this is a bug or I am using the API wrong. Please advise. This is all IPv6-only network. I have a host with say three network interfaces : eth0, eth1 and eth2 - and I want to listen to ...

Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/1132

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Service discovery on specific IPv6 interface","articleBody":"Not sure if this is a bug or I am using the API wrong. Please advise. This is all IPv6-only network.\r\nI have a host with say three network interfaces : `eth0`, `eth1` and `eth2` - and I want to listen to advertisements coming only from `eth1`.\r\n\r\nMy service listener is based on `browser.py` example. The api calls look something like this:\r\n```\r\nclass ZeroconfListener:\r\n    \"\"\"Class for zeroconf to populate\"\"\"\r\n\r\n    def remove_service(self, _zeroconf, service_type, name):\r\n        \"\"\"Called when zeroconf when a service is nolonger available\"\"\"\r\n       do stuff\r\n\r\n    def add_service(self, zeroconf, service_type, name):\r\n        \"\"\"Called when zeroconf when a service becomes available\"\"\"\r\n        do stuff\r\n\r\n    def update_service(self, *_):\r\n        \"\"\"Called internally by Zeroconf.\"\"\"\r\n        not needed. do nothing\r\n\r\nzeroconf = Zeroconf(ip_version=IPVersion.V6Only, interfaces=[addr_of_eth1])\r\nservices = [\"_device-info._tcp.local.\"]\r\nServiceBrowser(zeroconf, services, ZeroconfListener())\r\n\r\nwhile True: # wait forever\r\n    time.sleep(60)\r\n```\r\n\r\nThe problem is, I only want to listen to advertisements coming from `eth1` but this seems to listen to all the interfaces. I can verify this by publishing a `_device-info._tcp.local` service from a machine connected on `eth0` subnet. I suspect that is because I am not using `unicast` argument when initialising `Zeroconf` class, and this line puts a listener on all the interfaces: https://github.com/python-zeroconf/python-zeroconf/blob/18b3cd7176631069e3203f966c0addac75503345/src/zeroconf/_utils/net.py#L358\r\n\r\nTL;DR Question is, how do I restrict zeroconf to a specific interface? Is this a supported use case?\r\n","author":{"url":"https://github.com/lokesh2019","@type":"Person","name":"lokesh2019"},"datePublished":"2023-02-15T16:46:19Z","url":"https://github.com/python-zeroconf/python-zeroconf/issues/1132"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d97b68be-857d-03d1-426c-4176803a3323
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE32A:C25F6:B00B:ECC2:6B007D36
html-safe-nonce17c7d7fc0c4673457a6d56525323353a21c211181b796a3bc089742fb390b56e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzJBOkMyNUY2OkIwMEI6RUNDMjo2QjAwN0QzNiIsInZpc2l0b3JfaWQiOiI2MzEzNjIzNTM5MTkwNjI3NjM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac20742ae0d4471f68b37fa2a3e91bce929525fef0e6f44a65d7f171e44bbb5649
hovercard-subject-tagissue:1586195596
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-zeroconf/python-zeroconf/1132/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ae3d0f7e7ceb300334e68bd7487887cc3aeb79664d8492a996900c4d4e664b5e/python-zeroconf/python-zeroconf/issues/1132
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ae3d0f7e7ceb300334e68bd7487887cc3aeb79664d8492a996900c4d4e664b5e/python-zeroconf/python-zeroconf/issues/1132
og:image:altNot sure if this is a bug or I am using the API wrong. Please advise. This is all IPv6-only network. I have a host with say three network interfaces : eth0, eth1 and eth2 - and I want to listen to ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelokesh2019
hostnamegithub.com
expected-hostnamegithub.com
None82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83
turbo-cache-controlno-preview
go-importgithub.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git
octolytics-dimension-user_id120192235
octolytics-dimension-user_loginpython-zeroconf
octolytics-dimension-repository_id21548731
octolytics-dimension-repository_nwopython-zeroconf/python-zeroconf
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21548731
octolytics-dimension-repository_network_root_nwopython-zeroconf/python-zeroconf
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released1bc2aa1939001689f5ce935982c10a6138f745c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python-zeroconf/python-zeroconf/issues/1132#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2F1132
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2F1132
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-zeroconf%2Fpython-zeroconf
Reloadhttps://github.com/python-zeroconf/python-zeroconf/issues/1132
Reloadhttps://github.com/python-zeroconf/python-zeroconf/issues/1132
Reloadhttps://github.com/python-zeroconf/python-zeroconf/issues/1132
python-zeroconfhttps://github.com/python-zeroconf
python-zeroconfhttps://github.com/python-zeroconf/python-zeroconf
Codehttps://github.com/python-zeroconf/python-zeroconf
Issues50 (50)https://github.com/python-zeroconf/python-zeroconf/issues
Pull requests16 (16)https://github.com/python-zeroconf/python-zeroconf/pulls
Discussionshttps://github.com/python-zeroconf/python-zeroconf/discussions
Actionshttps://github.com/python-zeroconf/python-zeroconf/actions
Projectshttps://github.com/python-zeroconf/python-zeroconf/projects
Wikihttps://github.com/python-zeroconf/python-zeroconf/wiki
Security and quality5 (5)https://github.com/python-zeroconf/python-zeroconf/security
Insightshttps://github.com/python-zeroconf/python-zeroconf/insights
https://github.com/python-zeroconf/python-zeroconf
New issuehttps://github.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1132
New issuehttps://github.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1132
Service discovery on specific IPv6 interfacehttps://github.com/python-zeroconf/python-zeroconf/issues/1132#top
https://github.com/lokesh2019
lokesh2019https://github.com/lokesh2019
on Feb 15, 2023https://github.com/python-zeroconf/python-zeroconf/issues/1132#issue-1586195596
python-zeroconf/src/zeroconf/_utils/net.pyhttps://github.com/python-zeroconf/python-zeroconf/blob/18b3cd7176631069e3203f966c0addac75503345/src/zeroconf/_utils/net.py#L358
18b3cd7https://github.com/python-zeroconf/python-zeroconf/commit/18b3cd7176631069e3203f966c0addac75503345
Sign up for freehttps://github.com/signup?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1132
Sign in to commenthttps://github.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1132
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.