{"id":21871074,"url":"https://github.com/isaka-james/closeport","last_synced_at":"2026-04-14T01:31:01.861Z","repository":{"id":249208852,"uuid":"830774865","full_name":"isaka-james/closeport","owner":"isaka-james","description":"A Linux Tool that forcefully turn off PORTS on your PC.","archived":false,"fork":false,"pushed_at":"2024-09-04T10:15:09.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T22:26:01.623Z","etag":null,"topics":["close-port","closing-ports","forcefully","linux","ports","server-administration"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/isaka-james.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,"publiccode":null,"codemeta":null}},"created_at":"2024-07-19T01:18:51.000Z","updated_at":"2024-09-04T10:15:12.000Z","dependencies_parsed_at":"2024-07-19T09:50:28.615Z","dependency_job_id":null,"html_url":"https://github.com/isaka-james/closeport","commit_stats":null,"previous_names":["isaka-james/closeport"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/isaka-james/closeport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fcloseport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fcloseport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fcloseport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fcloseport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaka-james","download_url":"https://codeload.github.com/isaka-james/closeport/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fcloseport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31778580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["close-port","closing-ports","forcefully","linux","ports","server-administration"],"created_at":"2024-11-28T06:13:20.796Z","updated_at":"2026-04-14T01:31:01.833Z","avatar_url":"https://github.com/isaka-james.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Close Port Tool\n\n\u003cp\u003e\n  \u003cimg src=\"https://komarev.com/ghpvc/?username=isaka-close\u0026label=Close%20Port\u0026color=0e75b6\u0026style=flat\" alt=\"since 04 Sep,2024\" /\u003e\n\u003c/p\u003e\n\nA simple Bash script to identify processes using a specified port, retrieve their process IDs (PIDs), and terminate them. This script requires superuser (sudo) permissions to run.\n\n## Overview\n\nThe `closeport.sh` script is designed to help system administrators and users easily manage network ports by terminating any processes that are currently using a specified port. \n\n## Features\n\n- Takes a port number as an argument.\n- Identifies if any processes are using the specified port.\n- Retrieves the process IDs (PIDs) of these processes.\n- Terminates the processes using the specified port.\n- Provides feedback on whether any processes were found and terminated or if the port was unused.\n\n## Requirements\n\n- Bash shell\n- `sudo` privileges\n\n## Usage\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/isaka-james/closeport.git\n   ```\n\n2. **Navigate to the Repository**\n\n   ```bash\n   cd closeport\n   ```\n\n3. **Make the Script Executable**\n\n   ```bash\n   chmod +x closeport.sh\n   ```\n\n4. **Run the Script**\n\n   ```bash\n   sudo ./closeport.sh \u003cport_number\u003e\n   ```\n\n   Replace `\u003cport_number\u003e` with the port number you want to check and close. For example:\n\n   ```bash\n   sudo ./closeport.sh 8080\n   ```\n\n## Example\n\nIf the script is run with port `8080` and there is a process using this port, you might see output like:\n\n```\nProcess with PID 1234 is using port 8080 and has been terminated.\n```\n\nIf no process is found using the specified port:\n\n```\nNo process is using port 8080.\n```\n\n## Nerd Installation\n```bash\nsudo chmod +x closeport.sh \u0026\u0026 sudo mv closeport closeport \u0026\u0026 sudo mv closeport /usr/bin \u0026\u0026 echo \"Installed successfully!\"\n```\nSo now you can type `sudo closeport 8080` to forcefully stop PORT 8080 in your MACHINE.\n\nIf you ever feel to uninstall it then type `sudo rm -rf /usr/bin/closeport`\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Author\n\nIsaka James\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaka-james%2Fcloseport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaka-james%2Fcloseport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaka-james%2Fcloseport/lists"}