{"id":22322969,"url":"https://github.com/asheroto/isportactive","last_synced_at":"2025-08-19T09:14:33.129Z","repository":{"id":167352916,"uuid":"642972895","full_name":"asheroto/IsPortActive","owner":"asheroto","description":"Check if a port is actively listening or in use. ","archived":false,"fork":false,"pushed_at":"2023-10-27T06:10:40.000Z","size":37,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T16:19:56.166Z","etag":null,"topics":["active","check","listening","name","network","networking","port","powershell","powershell-script","process","process-id","process-name","program","windows"],"latest_commit_sha":null,"homepage":"https://bit.ly/IsPortActive","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asheroto.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["asheroto"],"ko_fi":"asheroto"}},"created_at":"2023-05-19T19:21:55.000Z","updated_at":"2024-07-07T00:04:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"d85ecadf-51f1-41de-a449-2331e6db5320","html_url":"https://github.com/asheroto/IsPortActive","commit_stats":null,"previous_names":["asheroto/isportactive"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/asheroto/IsPortActive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheroto%2FIsPortActive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheroto%2FIsPortActive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheroto%2FIsPortActive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheroto%2FIsPortActive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asheroto","download_url":"https://codeload.github.com/asheroto/IsPortActive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheroto%2FIsPortActive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271129029,"owners_count":24703879,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["active","check","listening","name","network","networking","port","powershell","powershell-script","process","process-id","process-name","program","windows"],"created_at":"2024-12-04T01:08:56.482Z","updated_at":"2025-08-19T09:14:33.099Z","avatar_url":"https://github.com/asheroto.png","language":"PowerShell","funding_links":["https://github.com/sponsors/asheroto","https://ko-fi.com/asheroto"],"categories":[],"sub_categories":[],"readme":"[![GitHub Release Date - Published_At](https://img.shields.io/github/release-date/asheroto/IsPortActive)](https://github.com/asheroto/IsPortActive/releases)\n[![GitHub Downloads - All Releases](https://img.shields.io/github/downloads/asheroto/IsPortActive/total)](https://github.com/asheroto/IsPortActive/releases)\n[![GitHub Sponsor](https://img.shields.io/github/sponsors/asheroto?label=Sponsor\u0026logo=GitHub)](https://github.com/sponsors/asheroto)\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/asheroto)\n\n# IsPortActive\n\nThis script checks if a port is currently active or in use. It can check for active TCP and UDP connections on a specified port, by process name, or by process ID.\n\nIf the process name is `svchost`, the script will find the service and display name in addition to the process name.\n\n# Requirements\n\n- PowerShell 7+\n\n## Installing\n\nYou can either download the PS1 script from here, or install using...\n\n```powershell\nInstall-Script IsPortActive -Force\n```\n\nAnswer **Yes** to any prompts. `-Force` is optional, but it will force the script to update if it is outdated.\n\nThis script is published on [PowerShell Gallery](https://www.powershellgallery.com/packages/IsPortActive).\n\n## Usage\n\n```plaintext\nIsPortActive [-Port \u003cint\u003e] [-ProcessName \u003cstring\u003e] [-ProcessId \u003cint\u003e] [-Version] [-Help] [-CheckForUpdate]\n```\n\n## Parameters\n\nOnly one of the following parameters can be used at a time.\n\n| Parameter | Description |\n| --- | --- |\n| `-Port` | Specifies the port number to check for active connections. |\n| `-ProcessName` | Specifies the name of the process to check for active connections. |\n| `-ProcessId` | Specifies the process ID to check for active connections. |\n| `-Version` | Displays the version of the script. |\n| `-Help` | Displays the help information for the script. |\n| `-CheckForUpdate` | Checks for updates of the script. |\n\n## Examples\n\n| Description | Command |\n| --- | --- |\n| Check if port 443 is active | `IsPortActive -Port 443` |\n| Check what ports are being used by process `httpd` | `IsPortActive -ProcessName \"httpd\"` |\n| Check what ports are being used by process ID `1234` | `IsPortActive -ProcessId 1234` |\n\n## Screenshots\n\n### Check Port\n![image](https://github.com/asheroto/IsPortActive/assets/49938263/7c0fe7c1-42fc-4514-b8e7-99b932442cd5)\n\n### Check Process Name\n![image](https://github.com/asheroto/IsPortActive/assets/49938263/2d40cd96-92eb-42c2-8e04-9cf75657c726)\n\n### Check Process ID\n![image](https://github.com/asheroto/IsPortActive/assets/49938263/30da6eb8-5589-4542-9faa-7b3103f8adce)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasheroto%2Fisportactive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasheroto%2Fisportactive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasheroto%2Fisportactive/lists"}