René's URL Explorer Experiment


Title: Published ZeroConf Services are not Discoverable on Android React Native But Visible in Bonjour Browser. · Issue #1387 · python-zeroconf/python-zeroconf · GitHub

Open Graph Title: Published ZeroConf Services are not Discoverable on Android React Native But Visible in Bonjour Browser. · Issue #1387 · python-zeroconf/python-zeroconf

X Title: Published ZeroConf Services are not Discoverable on Android React Native But Visible in Bonjour Browser. · Issue #1387 · python-zeroconf/python-zeroconf

Description: Hello Team, I am a University Student and Working on My Dissertation, I was exploring some libraries to connect to RPi's local Node/Python server. I am using python to publish a zeroconf service on local network on RPi 4 Model B from zer...

Open Graph Description: Hello Team, I am a University Student and Working on My Dissertation, I was exploring some libraries to connect to RPi's local Node/Python server. I am using python to publish a zeroconf service on...

X Description: Hello Team, I am a University Student and Working on My Dissertation, I was exploring some libraries to connect to RPi's local Node/Python server. I am using python to publish a zeroconf servic...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Published ZeroConf Services are not Discoverable on Android React Native But Visible in Bonjour Browser.","articleBody":"Hello Team,\r\nI am a University Student and Working on My Dissertation, I was exploring some libraries to connect to RPi's local Node/Python server. \r\n\r\nI am using python to publish a zeroconf service on local network on RPi 4 Model B\r\n\r\n``` py\r\nfrom zeroconf import ServiceInfo, Zeroconf\r\n\r\nPORT=8080\r\n\r\nzeroconf = Zeroconf()\r\nwsInfo = ServiceInfo('_http._tcp.local.',\r\n                     \"myhost._http._tcp.local.\",\r\n                     PORT, 0, 0, {\"random_key\": \"1234\", \"answer\": \"42\"})\r\nzeroconf.register_service(wsInfo)\r\n\r\nimport time\r\ntime.sleep(1000);\r\n```\r\n\r\n\r\nAfter Registering this service, It is visible on the Bonjour Browser. \r\nMy Host is the service name.\r\nbut the same is not visible in the react native app using react-native-zeroconf.\r\n\r\n![image](https://github.com/user-attachments/assets/ea79c0e4-ce8b-4968-8b10-20d628815ea8)\r\n\r\nReact Native Code\r\n\r\n```ts\r\n/**\r\n * Sample React Native App\r\n * https://github.com/facebook/react-native\r\n *\r\n * @format\r\n */\r\n\r\nimport React, {useEffect} from 'react';\r\nimport {\r\n  SafeAreaView,\r\n  ScrollView,\r\n  StatusBar,\r\n  Text,\r\n  useColorScheme,\r\n  View,\r\n} from 'react-native';\r\nimport Zeroconf from 'react-native-zeroconf';\r\nimport {Colors} from 'react-native/Libraries/NewAppScreen';\r\n\r\nconst zeroconf = new Zeroconf();\r\n\r\nfunction App(): React.JSX.Element {\r\n  const isDarkMode = useColorScheme() === 'dark';\r\n\r\n  const backgroundStyle = {\r\n    backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,\r\n  };\r\n\r\n  useEffect(() =\u003e {\r\n    const handleStart = () =\u003e console.log('The scan has started.');\r\n    const handleFound = name =\u003e console.log('Service found:', name);\r\n    const handleResolved = service =\u003e {\r\n      console.log('Service resolved:', service);\r\n      // setServices(prevServices =\u003e [...prevServices, service]);\r\n    };\r\n    const handleError = err =\u003e console.log('Error:', err);\r\n    const handleStop = () =\u003e console.log('The scan has stopped.');\r\n\r\n    zeroconf.on('start', handleStart);\r\n    zeroconf.on('found', handleFound);\r\n    zeroconf.on('resolved', handleResolved);\r\n    zeroconf.on('error', handleError);\r\n    zeroconf.on('stop', handleStop);\r\n\r\n    // Start the service scan\r\n    setTimeout(() =\u003e {\r\n      zeroconf.scan('http', 'tcp');\r\n      console.log('Started scanning...');\r\n    }, 1000);\r\n\r\n    // Cleanup on component unmount\r\n    return () =\u003e {\r\n      zeroconf.off('start', handleStart);\r\n      zeroconf.off('found', handleFound);\r\n      zeroconf.off('resolved', handleResolved);\r\n      zeroconf.off('error', handleError);\r\n      zeroconf.off('stop', handleStop);\r\n      zeroconf.stop();\r\n    };\r\n  }, []);\r\n\r\n  return (\r\n    \u003cSafeAreaView style={backgroundStyle}\u003e\r\n      \u003cStatusBar\r\n        barStyle={isDarkMode ? 'light-content' : 'dark-content'}\r\n        backgroundColor={backgroundStyle.backgroundColor}\r\n      /\u003e\r\n      \u003cScrollView\r\n        contentInsetAdjustmentBehavior=\"automatic\"\r\n        style={backgroundStyle}\u003e\r\n        \u003cView\u003e\r\n          \u003cText\u003eMy Better RN NETWORK\u003c/Text\u003e\r\n        \u003c/View\u003e\r\n      \u003c/ScrollView\u003e\r\n    \u003c/SafeAreaView\u003e\r\n  );\r\n}\r\n\r\nexport default App;\r\n\r\n```\r\n\r\nMy WiFi Router's Services are visible in the console but not this one.\r\n\r\n![image](https://github.com/user-attachments/assets/07154f25-79c9-49cf-bbd4-828d64ac9627)\r\n\r\n\r\nCan someone please help me making my zeroconf  service discoverable in react native code....\r\nThe same is True with nodejs server usng 'bonjour' package.\r\n\r\nI have added these permissions in AndroidManifest.xml\r\n\r\n```xml\r\n    \u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\r\n    \u003cuses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" /\u003e\r\n    \u003cuses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\" /\u003e\r\n    \u003cuses-permission android:name=\"android.permission.CHANGE_WIFI_MULTICAST_STATE\" /\u003e\r\n```\r\n\r\n@bdraco @PaarthShah @jstasiak @scop @dtantsur @andrewbonney @","author":{"url":"https://github.com/Tauqeer-Ahmed-99","@type":"Person","name":"Tauqeer-Ahmed-99"},"datePublished":"2024-08-07T17:51:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1387/python-zeroconf/issues/1387"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fc05b615-9a34-3466-bad1-f550967910f7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC802:2F44D6:903B5E:CB6152:697250F9
html-safe-nonce0c1e6fb1f0ac0f13cfc13c667c064c2ad3f464724d684c6048d9fa4c0e8e2568
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODAyOjJGNDRENjo5MDNCNUU6Q0I2MTUyOjY5NzI1MEY5IiwidmlzaXRvcl9pZCI6IjIyMDc3MDA1NDI5NTc5NjU1NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0063f7b52882c75e37daa2dc53c129c4415edb03ea7d20e8c0fc441547ae2027
hovercard-subject-tagissue:2454018591
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/1387/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3f3a6f67a08ca1b4916028bdc488b1045e40eb744b4cd2d53615153d3360be08/python-zeroconf/python-zeroconf/issues/1387
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3f3a6f67a08ca1b4916028bdc488b1045e40eb744b4cd2d53615153d3360be08/python-zeroconf/python-zeroconf/issues/1387
og:image:altHello Team, I am a University Student and Working on My Dissertation, I was exploring some libraries to connect to RPi's local Node/Python server. I am using python to publish a zeroconf service on...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTauqeer-Ahmed-99
hostnamegithub.com
expected-hostnamegithub.com
Nonef6d9b08324bb62b2cf170b9e435da2bdc7efa5aa93e7ca70ee3162552c05329b
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
release169d2b5c72bff9cc676084f0ac7f8ea888f15f54
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1387#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2F1387
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2F1387
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1387
Reloadhttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1387
Reloadhttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1387
python-zeroconf https://patch-diff.githubusercontent.com/python-zeroconf
python-zeroconfhttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf
Fork 232 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf
Star 704 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf
Code https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf
Issues 50 https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues
Pull requests 5 https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/pulls
Discussions https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/discussions
Actions https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/actions
Projects 0 https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/projects
Wiki https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1387
Insights https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/pulse
Code https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf
Issues https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues
Pull requests https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/pulls
Discussions https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/discussions
Actions https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/actions
Projects https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/projects
Wiki https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/wiki
Security https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/security
Insights https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1387
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1387
Published ZeroConf Services are not Discoverable on Android React Native But Visible in Bonjour Browser.https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1387#top
https://github.com/Tauqeer-Ahmed-99
https://github.com/Tauqeer-Ahmed-99
Tauqeer-Ahmed-99https://github.com/Tauqeer-Ahmed-99
on Aug 7, 2024https://github.com/python-zeroconf/python-zeroconf/issues/1387#issue-2454018591
https://private-user-images.githubusercontent.com/87526354/355925185-ea79c0e4-ce8b-4968-8b10-20d628815ea8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjkwOTk4MTMsIm5iZiI6MTc2OTA5OTUxMywicGF0aCI6Ii84NzUyNjM1NC8zNTU5MjUxODUtZWE3OWMwZTQtY2U4Yi00OTY4LThiMTAtMjBkNjI4ODE1ZWE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTIyVDE2MzE1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM5NmQyN2E3ZjAzMjIzMTk2NTNlMjNkYjQzNGY1OTUwYjRkNzQwNmU4NjM3NmI1ZDhmMDVhOGI0NDY2NDFmYTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qeu74EO2EB8t8HQ7_gbEDZeBmQEJl6JqGV_MwOYNRS0
https://private-user-images.githubusercontent.com/87526354/355926440-07154f25-79c9-49cf-bbd4-828d64ac9627.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjkwOTk4MTMsIm5iZiI6MTc2OTA5OTUxMywicGF0aCI6Ii84NzUyNjM1NC8zNTU5MjY0NDAtMDcxNTRmMjUtNzljOS00OWNmLWJiZDQtODI4ZDY0YWM5NjI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTIyVDE2MzE1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1NDgzZDc5OGZiMjc2Zjk1MGEzZTk1NDRjM2YwMGFiZTY3MGMwZjMyYTY2NDljYmQ3YzE4YmMzZmUxY2IzMGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.b1WROfgMW2UT5TNgr4noD9CGoEmfHCerfsolPwy8Li4
@bdracohttps://github.com/bdraco
@PaarthShahhttps://github.com/PaarthShah
@jstasiakhttps://github.com/jstasiak
@scophttps://github.com/scop
@dtantsurhttps://github.com/dtantsur
@andrewbonneyhttps://github.com/andrewbonney
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.