{"id":16164295,"url":"https://github.com/troglobit/lipify","last_synced_at":"2025-03-18T22:31:26.468Z","repository":{"id":136803878,"uuid":"47477307","full_name":"troglobit/lipify","owner":"troglobit","description":"C API for http://ipify.org","archived":false,"fork":false,"pushed_at":"2022-07-20T02:35:23.000Z","size":24,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T00:34:04.889Z","etag":null,"topics":["c","ipify","ipify-api","ipv6-support","library"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/troglobit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-05T23:56:21.000Z","updated_at":"2024-11-28T16:31:57.000Z","dependencies_parsed_at":"2024-10-27T19:17:44.030Z","dependency_job_id":null,"html_url":"https://github.com/troglobit/lipify","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Flipify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Flipify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Flipify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Flipify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/troglobit","download_url":"https://codeload.github.com/troglobit/lipify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244318678,"owners_count":20433961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","ipify","ipify-api","ipv6-support","library"],"created_at":"2024-10-10T02:46:05.912Z","updated_at":"2025-03-18T22:31:26.463Z","avatar_url":"https://github.com/troglobit.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"C library for api.ipify.org\n===========================\n\nlipify connects to http://api.ipify.org to query your current IP address.\nBoth IPv4 and IPv6 is supported, for connecting to the ipify server and\nreturning your address.\n\nThe library weighs in at 14 kiB.  A versioned tarball can be downloaded\nfrom GitHub: https://github.com/troglobit/lipify/releases\n\n\nBuild \u0026 Install\n---------------\n\nBy default, lipify installs to `/usr/local`:\n\n```\nmake\nmake install\n```\n\nThe default can be changed by setting the `prefix=` variable at install:\n\n```\nmake install prefix=/opt\n```\n\n\u003e The `DESTDIR=` variable is also supported, for the benefit of packagers.\n\n\nExample\n-------\n\nThe simplest example of lipify looks like this:\n\n```C\n    #include \u003cstdio.h\u003e\n    #include \u003cipify.h\u003e\n\n    int main(void)\n    {\n            char addr[256];\n\n            if (ipify(addr, sizeof(addr)))\n                    return 1;\n\n            printf(\"%s\\n\", addr);\n\n            return 0;\n    }\n```\n\nYou can also get a descriptor, to use with `poll()` or an event loop library like\n[libuEv](https://github.com/troglobit/libuev), like this:\n\n\n```C\n    #include \u003cipify.h\u003e\n\n    int main(void)\n    {\n            int sd;\n            char addr[256];\n\n            sd = ipify_connect();\n            if (sd \u003c 0)\n                    return 1;\n\n            if (!ipify_query(sd, addr, sizeof(addr)))\n                    printf(\"%s\\n\", addr);\n\n            return ipify_disconnect(sd);\n    }\n```\n\n\nLicense\n-------\n\nlipify is free software, licensed to you under the very permissive\n[ISC license](https://en.wikipedia.org/wiki/ISC_license).  See the\nfile LICENSE in the lipify distribution for details.\n\n\nOrigin \u0026 References\n-------------------\n\nlipify is written by [Joachim Wiberg](https://troglobit.com), post\nbug reports and pull requests to the project's GitHub repository at\nhttps://github.com/troglobit/lipify\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroglobit%2Flipify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftroglobit%2Flipify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroglobit%2Flipify/lists"}