Title: Localhost DNS lookup fails without network connection · Issue #524 · machinezone/IXWebSocket · GitHub
Open Graph Title: Localhost DNS lookup fails without network connection · Issue #524 · machinezone/IXWebSocket
X Title: Localhost DNS lookup fails without network connection · Issue #524 · machinezone/IXWebSocket
Description: Hi! Thanks again for the lib! I mostly use this library on windows to connect to a local server via "wss://localhost". This normally works fine, but when not connected to a network (network cable unplugged and not connected to wifi), IXW...
Open Graph Description: Hi! Thanks again for the lib! I mostly use this library on windows to connect to a local server via "wss://localhost". This normally works fine, but when not connected to a network (network cable u...
X Description: Hi! Thanks again for the lib! I mostly use this library on windows to connect to a local server via "wss://localhost". This normally works fine, but when not connected to a network (netwo...
Opengraph URL: https://github.com/machinezone/IXWebSocket/issues/524
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Localhost DNS lookup fails without network connection","articleBody":"Hi! Thanks again for the lib!\r\n\r\nI mostly use this library on windows to connect to a local server via \"wss://localhost\". This normally works fine, but when **not** connected to a network (network cable unplugged and not connected to wifi), IXWebsockets fails to connect to my server.\r\n\r\nI tracked it down to failing DNS lookup of localhost. Digging into the code, I see `getaddrinfo` is configured not to do lookups when a with only a loopback address available (hint `AI_ADDRCONFIG` is set): https://github.com/machinezone/IXWebSocket/blob/9884c325dd0fa64b2b885b332e98118f60313208/ixwebsocket/IXDNSLookup.cpp#L64\r\n\r\nAs a workaround I tested to remove that flag and my program started working as expected.\r\n\r\nI'm not proficient in winsock etc, so I can't tell if there any specific reason for the flag to be set for the library or can it be removed or made configurable?\r\n\r\nThanks!","author":{"url":"https://github.com/MichelJansson","@type":"Person","name":"MichelJansson"},"datePublished":"2024-08-26T15:45:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/524/IXWebSocket/issues/524"}
| 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:84956092-668f-f027-3306-45a5d608f087 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85A2:1AC56:928C9C:C20B11:6A4C3B87 |
| html-safe-nonce | d70b960f53e4379f8c54ea52bcdd070cf092a432c8ec31c59dc918a51dd49c5b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUEyOjFBQzU2OjkyOEM5QzpDMjBCMTE6NkE0QzNCODciLCJ2aXNpdG9yX2lkIjoiMjc4ODc2MjMyNjIzNjE1MDY2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac6e833adf1933107ded791ddb67541869103e4d9f9f63493811a16f83bcc7d8 |
| hovercard-subject-tag | issue:2487173880 |
| 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/machinezone/IXWebSocket/524/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4c398e8e65cc8e5af8832271207e8d6fbea20ec3239d5ed15d63473d5b010df/machinezone/IXWebSocket/issues/524 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4c398e8e65cc8e5af8832271207e8d6fbea20ec3239d5ed15d63473d5b010df/machinezone/IXWebSocket/issues/524 |
| og:image:alt | Hi! Thanks again for the lib! I mostly use this library on windows to connect to a local server via "wss://localhost". This normally works fine, but when not connected to a network (network cable u... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MichelJansson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| turbo-cache-control | no-preview |
| go-import | github.com/machinezone/IXWebSocket git https://github.com/machinezone/IXWebSocket.git |
| octolytics-dimension-user_id | 6372053 |
| octolytics-dimension-user_login | machinezone |
| octolytics-dimension-repository_id | 150647867 |
| octolytics-dimension-repository_nwo | machinezone/IXWebSocket |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 150647867 |
| octolytics-dimension-repository_network_root_nwo | machinezone/IXWebSocket |
| 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 | d11deab54ce15bac57bda991cc63805976812c11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width