{"id":28387326,"url":"https://github.com/digitalruby/socketcloser","last_synced_at":"2025-07-24T11:36:25.257Z","repository":{"id":234964107,"uuid":"789819035","full_name":"DigitalRuby/SocketCloser","owner":"DigitalRuby","description":"Close ipv4 and ipv6 sockets on Windows and Linux","archived":false,"fork":false,"pushed_at":"2024-06-17T16:05:02.000Z","size":51,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-30T22:47:49.925Z","etag":null,"topics":["ipv4","ipv6","linux","network","networking","security","sockets","windows"],"latest_commit_sha":null,"homepage":"https://ipban.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DigitalRuby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"jjxtra","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"custom":null}},"created_at":"2024-04-21T16:32:42.000Z","updated_at":"2024-08-17T12:30:55.000Z","dependencies_parsed_at":"2024-04-21T21:54:45.717Z","dependency_job_id":"d8aca1a5-685f-4eaa-bc18-235fdef33e83","html_url":"https://github.com/DigitalRuby/SocketCloser","commit_stats":null,"previous_names":["digitalruby/socketcloser"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DigitalRuby/SocketCloser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalRuby%2FSocketCloser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalRuby%2FSocketCloser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalRuby%2FSocketCloser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalRuby%2FSocketCloser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DigitalRuby","download_url":"https://codeload.github.com/DigitalRuby/SocketCloser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigitalRuby%2FSocketCloser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262139605,"owners_count":23265185,"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":["ipv4","ipv6","linux","network","networking","security","sockets","windows"],"created_at":"2025-05-30T17:11:09.612Z","updated_at":"2025-06-26T20:31:56.335Z","avatar_url":"https://github.com/DigitalRuby.png","language":"C#","readme":"# SocketCloser\nClose ipv4 and ipv6 sockets on Windows and Linux.\n\n## Why\nOn Windows, closing an ipv6 socket is a dark art, requiring ritual sacrifice and much swearing. But no longer. Thanks to https://www.x86matthew.com/view_post?id=settcpentry6, you now have unlimited power to close all the sockets.\n\nThis utility happens to work on Linux too, but you can just as easily use this directly:\n\n`ss --kill state all src \"remoteip:remoteport\" dst \"localip:localport\"`\n\n`ss --kill state all src \"localip:localport\" dst \"remoteip:remoteport\"`\n\n## Usage\n`SocketCloser \u003clocalip:localport\u003e \u003cremoteip:remoteport\u003e`\n\nIP of `0.0.0.0` (ipv4) or `::` (ipv6) is wildcard. Port of `0` is wildcard.\n```\nExamples:\nSocketCloser 1.2.3.4:443 5.6.7.8:9876\nSocketCloser 1.2.3.4:0 5.6.7.8:0\nSocketCloser 0.0.0.0:0 5.6.7.8:0\nSocketCloser [2001:db8:3333:4444:5555:6666:7777:8888]:443 [2002:db8:3333:4444:5555:6666:7777:8888]:9876\nSocketCloser [2001:db8:3333:4444:5555:6666:7777:8888]:443 [2002:db8:3333:4444:5555:6666:7777:8888]:0\nSocketCloser [::]:0 [2002:db8:3333:4444:5555:6666:7777:8888]:0\n```\n\n## Exit codes\n```\n 0: success  \n-1: bad argument count  \n-2: bad local end point  \n-3: bad remote end point  \n-4: mismatching address families  \n-5: wildcards used for both local and remote ip  \n-6: failed to close socket  \n```\n\n## License\nMIT","funding_links":["https://github.com/sponsors/jjxtra"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalruby%2Fsocketcloser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalruby%2Fsocketcloser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalruby%2Fsocketcloser/lists"}