• Skip to primary navigation
  • Skip to content
  • Skip to footer
Highly Distinguish IT solution & education
  • About
  • Sitemap

    Ports Discovery On Hosts

    less than 1 minute read

    On this page

    • To find out the port numbers running in servers
      • Windows

    To find out the port numbers running in servers

    Windows

    • To start powershell (with administrator permission)
    • Run below below script
      netstat -an | Select-String "LISTENING" | ForEach-Object { [regex]::Matches($_, '\d+').Value } | Sort-Object -Unique
      

    Updated: November 2, 2023

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    3 minute read

    Configuring List Variables in HCP Terraform Cloud

    1 minute read

    Configuring List Variables in HCP Terraform Cloud

    Solving the 403 Forbidden Nightmare - Git Cloning in SAML-Enforced Organizations

    3 minute read

    Happiness is not something ready made. It comes from your own actions. - Dalai Lama

    Complete Guide: Fixing Python 3.8 and Pipenv Errors in WSL2 (2025 Solutions)

    3 minute read

    The greatest glory in living lies not in never falling, but in rising every time we fall. - Nelson Mandela

    • Follow:
    • Feed
    © 2025 Highly Distinguish. Powered by Jekyll & Minimal Mistakes.