{"id":15454588,"url":"https://github.com/degitx/stun","last_synced_at":"2026-04-27T21:31:53.869Z","repository":{"id":145799329,"uuid":"408994514","full_name":"DEgITx/stun","owner":"DEgITx","description":"RFC5389 / tiny STUN protocol client implementation on C / Get my ip","archived":false,"fork":false,"pushed_at":"2021-10-04T23:23:03.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T10:32:45.403Z","etag":null,"topics":["cpp","rfc5389","stun"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DEgITx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2021-09-21T22:43:17.000Z","updated_at":"2021-10-04T23:23:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f81d3e7b-0b3e-463c-bac2-78c80eec3c47","html_url":"https://github.com/DEgITx/stun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEgITx%2Fstun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEgITx%2Fstun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEgITx%2Fstun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEgITx%2Fstun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEgITx","download_url":"https://codeload.github.com/DEgITx/stun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246009037,"owners_count":20708881,"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":["cpp","rfc5389","stun"],"created_at":"2024-10-01T22:04:12.140Z","updated_at":"2026-04-27T21:31:53.862Z","avatar_url":"https://github.com/DEgITx.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Linux:\n```bash\ngcc stun.c stun_get_addr.c\n```\n\nWindows (mingw):\n```bash\ngcc stun.c stun_get_addr.c -l ws2_32\n```\n\n\nthen\n```\n./a 173.194.222.127 19302 4233\n```\n\nimplementation (include stun_get_addr.c in your project):\n```c\nint stun_get_addr(char *stun_server_ip, short stun_server_port, short local_port, char *return_ip, short *return_port);\n```\n\nexample:\n```c\nchar return_ip[50];\nshort return_port;\nif (stun_get_addr(\"173.194.222.127\", 19302, 4233, return_ip, \u0026return_port) == 0) {\n\tprintf(\"%s\\n\", return_ip);\n} else {\n\tprintf(\"some error\\n\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegitx%2Fstun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdegitx%2Fstun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdegitx%2Fstun/lists"}