{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/1017","repository_url":"https://api.github.com/repos/NativeScript/ios-runtime","labels_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/1017/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/1017/comments","events_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/1017/events","html_url":"https://github.com/NativeScript/ios-runtime/issues/1017","id":382149555,"node_id":"MDU6SXNzdWUzODIxNDk1NTU=","number":1017,"title":"How to get IPv6 address?","user":{"login":"DeepakArora76","id":24317821,"node_id":"MDQ6VXNlcjI0MzE3ODIx","avatar_url":"https://avatars0.githubusercontent.com/u/24317821?v=4","gravatar_id":"","url":"https://api.github.com/users/DeepakArora76","html_url":"https://github.com/DeepakArora76","followers_url":"https://api.github.com/users/DeepakArora76/followers","following_url":"https://api.github.com/users/DeepakArora76/following{/other_user}","gists_url":"https://api.github.com/users/DeepakArora76/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepakArora76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepakArora76/subscriptions","organizations_url":"https://api.github.com/users/DeepakArora76/orgs","repos_url":"https://api.github.com/users/DeepakArora76/repos","events_url":"https://api.github.com/users/DeepakArora76/events{/privacy}","received_events_url":"https://api.github.com/users/DeepakArora76/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-11-19T10:30:13Z","updated_at":"2018-11-23T07:51:16Z","closed_at":"2018-11-23T07:51:16Z","author_association":"NONE","body":"I am able to retrieve IPv4 address using **inet_ntop** and **interop.Reference** technique. The API **inet_ntop** is capable of getting an IPv6 address in Objective-C using  **sockaddr_in6** and as well **sockaddr_in**.  I am unable to find any reference of **sockaddr_in6** in NativeScript, and when I tried using **sockaddr_in** to get IPv6 I get garbage address. The correct approach requires **sockaddr_in6**.\r\n\r\nAppreciate your valuable tips/help to solve this problem.\r\n\r\n> declare function inet_ntop(p1: number, p2: interop.Pointer | interop.Reference<any>, p3: string, p4: number): string;\r\n> \r\n> interface sockaddr_in {\r\n> \tsin_len: number;\r\n> \tsin_family: number;\r\n> \tsin_port: number;\r\n> \tsin_addr: in_addr;\r\n> \tsin_zero: interop.Reference<number>;\r\n> }\r\n> declare var sockaddr_in: interop.StructType<sockaddr_in>;\r\n> \r\n> \r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/comments/441173051","html_url":"https://github.com/NativeScript/ios-runtime/issues/1017#issuecomment-441173051","issue_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/1017","id":441173051,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTE3MzA1MQ==","user":{"login":"mbektchiev","id":5744783,"node_id":"MDQ6VXNlcjU3NDQ3ODM=","avatar_url":"https://avatars1.githubusercontent.com/u/5744783?v=4","gravatar_id":"","url":"https://api.github.com/users/mbektchiev","html_url":"https://github.com/mbektchiev","followers_url":"https://api.github.com/users/mbektchiev/followers","following_url":"https://api.github.com/users/mbektchiev/following{/other_user}","gists_url":"https://api.github.com/users/mbektchiev/gists{/gist_id}","starred_url":"https://api.github.com/users/mbektchiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbektchiev/subscriptions","organizations_url":"https://api.github.com/users/mbektchiev/orgs","repos_url":"https://api.github.com/users/mbektchiev/repos","events_url":"https://api.github.com/users/mbektchiev/events{/privacy}","received_events_url":"https://api.github.com/users/mbektchiev/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T07:51:16Z","updated_at":"2018-11-23T07:51:16Z","author_association":"CONTRIBUTOR","body":"It was a pleasure to help! \r\n\r\nYes, that's right - it would make the casts unneeded and the patch should be released with the next minor version of {N}."}}
{"actor":{"display_login":"mbektchiev"}}