Title: Socket Errors on Win 10 with 0.29 · Issue #337 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: Socket Errors on Win 10 with 0.29 · Issue #337 · python-zeroconf/python-zeroconf
X Title: Socket Errors on Win 10 with 0.29 · Issue #337 · python-zeroconf/python-zeroconf
Description: Hi, 0.29 appears to have caused issues with Windows 10 - it appears to have something to do with attempts to bind to private IP addresses when called without specified IP address (ie, DEFAULT). Using the provided browser example on Win 1...
Open Graph Description: Hi, 0.29 appears to have caused issues with Windows 10 - it appears to have something to do with attempts to bind to private IP addresses when called without specified IP address (ie, DEFAULT). Usi...
X Description: Hi, 0.29 appears to have caused issues with Windows 10 - it appears to have something to do with attempts to bind to private IP addresses when called without specified IP address (ie, DEFAULT). Usi...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Socket Errors on Win 10 with 0.29","articleBody":"Hi,\r\n\r\n0.29 appears to have caused issues with Windows 10 - it appears to have something to do with attempts to bind to private IP addresses when called without specified IP address (ie, DEFAULT).\r\n\r\nUsing the provided browser example on Win 10, zeroconf 0.29 and py39;\r\n```\r\nDEBUG:zeroconf:Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('',)\r\nDEBUG:zeroconf:Created socket \u003csocket.socket fd=296, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)\u003e\r\nDEBUG:zeroconf:Adding '169.254.115.209' (socket 296) to multicast group\r\nINFO:zeroconf:Address not available when adding 169.254.115.209 to multicast group, it is expected to happen on some systems\r\nDEBUG:zeroconf:Creating new socket with port 5353, ip_version IPVersion.V4Only, apple_p2p False and bind_addr ('169.254.115.209',)\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\shaun\\ledfx_venv_3.9\\LedFx\\test.py\", line 60, in \u003cmodule\u003e\r\n zeroconf = Zeroconf(ip_version=ip_version)\r\n File \"C:\\Users\\shaun\\ledfx_venv_3.9\\lib\\site-packages\\zeroconf\\__init__.py\", line 2508, in __init__\r\n self._listen_socket, self._respond_sockets = create_sockets(\r\n File \"C:\\Users\\shaun\\ledfx_venv_3.9\\lib\\site-packages\\zeroconf\\__init__.py\", line 2343, in create_sockets\r\n respond_socket = new_respond_socket(i, apple_p2p=apple_p2p)\r\n File \"C:\\Users\\shaun\\ledfx_venv_3.9\\lib\\site-packages\\zeroconf\\__init__.py\", line 2302, in new_respond_socket\r\n respond_socket = new_socket(\r\n File \"C:\\Users\\shaun\\ledfx_venv_3.9\\lib\\site-packages\\zeroconf\\__init__.py\", line 2250, in new_socket\r\n s.bind((bind_addr[0], port, *bind_addr[1:]))\r\nOSError: [WinError 10049] The requested address is not valid in its context\r\n```\r\nExplicitly passing an active IP address using \r\n`zeroconf = Zeroconf(ip_version=ip_version,interfaces=[\"192.168.1.166\"])`\r\nresults in the expected output.\r\n\r\nUsing the same example on Win 10, zeroconf 0.28.8 and py39 I get the expected results.\r\n\r\nipconfig output;\r\n```Windows IP Configuration\r\n\r\n\r\nEthernet adapter vEthernet (WSL):\r\n\r\n Connection-specific DNS Suffix . :\r\n Link-local IPv6 Address . . . . . : fe80::95a6:732f:6d4e:c491%54\r\n IPv4 Address. . . . . . . . . . . : 172.23.0.1\r\n Subnet Mask . . . . . . . . . . . : 255.255.240.0\r\n Default Gateway . . . . . . . . . :\r\n\r\nEthernet adapter Ethernet:\r\n\r\n Connection-specific DNS Suffix . :\r\n Link-local IPv6 Address . . . . . : fe80::e5bd:9a9a:d8c7:e24c%17\r\n IPv4 Address. . . . . . . . . . . : 192.168.1.166\r\n Subnet Mask . . . . . . . . . . . : 255.255.255.0\r\n Default Gateway . . . . . . . . . : 192.168.1.1\r\n\r\nWireless LAN adapter Local Area Connection* 1:\r\n\r\n Media State . . . . . . . . . . . : Media disconnected\r\n Connection-specific DNS Suffix . :\r\n\r\nWireless LAN adapter Local Area Connection* 2:\r\n\r\n Media State . . . . . . . . . . . : Media disconnected\r\n Connection-specific DNS Suffix . :\r\n\r\nWireless LAN adapter WiFi:\r\n\r\n Media State . . . . . . . . . . . : Media disconnected\r\n Connection-specific DNS Suffix . :\r\n\r\nEthernet adapter Bluetooth Network Connection:\r\n\r\n Media State . . . . . . . . . . . : Media disconnected\r\n Connection-specific DNS Suffix . :\r\n```\r\nCheers,\r\nShaun","author":{"url":"https://github.com/shauneccles","@type":"Person","name":"shauneccles"},"datePublished":"2021-03-31T01:23:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/337/python-zeroconf/issues/337"}
| 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:ad9f55b6-02a2-a480-8bc0-58b5a8b743d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 903C:F5443:83919A1:B431643:6973A02D |
| html-safe-nonce | 1ae025573fbc7081b2c44395952eb2fa51aef28b33dbc8e326c2412f757483b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDNDOkY1NDQzOjgzOTE5QTE6QjQzMTY0Mzo2OTczQTAyRCIsInZpc2l0b3JfaWQiOiIyMTc2NzUxNjA5OTE4NDk2ODEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 95f5b9aea8a0a516c6a4b23c56b5437ef8e84c32e3c66d1d8a459c49a2f5f36f |
| hovercard-subject-tag | issue:845599408 |
| 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/337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a3ecdfd310ff30f994d2221fd5ef10d3662f18aca61bff3d6d324d13897df06/python-zeroconf/python-zeroconf/issues/337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a3ecdfd310ff30f994d2221fd5ef10d3662f18aca61bff3d6d324d13897df06/python-zeroconf/python-zeroconf/issues/337 |
| og:image:alt | Hi, 0.29 appears to have caused issues with Windows 10 - it appears to have something to do with attempts to bind to private IP addresses when called without specified IP address (ie, DEFAULT). Usi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shauneccles |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3e9aa9d0c22a21b13b378b4acd09f5dd4876a884425aacd32a9f473b84c8762d |
| 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 | ae4dbd3ac4179af799d71b75a60b0075ccccc5f6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width