Hi
how can know how ports is open and how can get list of open ports name ???
thanks

Dani AI

Generated

Short answer and clarification (adds to @gurukid68 and ): "Open ports" can mean two different things — a process is listening on a local TCP/UDP port, and that port is reachable from other machines. Both need checking: list local listeners, map them to processes, then verify firewall/NAT and external reachability.

Useful ways to inspect and verify (modern Windows):

  • PowerShell (local sockets): use Get-NetTCPConnection for TCP and Get-NetUDPEndpoint for UDP to enumerate listeners and their PIDs. Run PowerShell as Administrator to get complete PID/process info. See Get-NetTCPConnection and Get-NetUDPEndpoint.

  • GUI and live view: Resource Monitor (resmon.exe) shows Listening Ports under the Network tab. For a real-time, process-aware list with the ability to close endpoints, use TCPView from Sysinternals.

  • Firewall vs listening: a socket can be listening but blocked by Windows Firewall. Inspect firewall rules with Get-NetFirewallRule or the firewall MMC. See Windows Firewall with Advanced Security and Get-NetFirewallRule.

  • External reachability: from another host use Test-NetConnection or a remote scanner like to confirm whether a port is reachable through NAT/firewall. See Test-NetConnection.

Mapping port numbers to service names: consult the IANA registry (service names and port numbers) or the local services file at C:\Windows\System32\drivers\etc\services.

Quick troubleshooting tips: run tools as Administrator, check whether the listener binds to 127.0.0.1 (local-only) vs 0.0.0.0, verify firewall rules and router/NAT port-forwarding, and identify the owning process to stop or reconfigure the service.

open command prompt. press the windows key + R then type cmd and press enter

type netstat -n and press enter

you may also want to try netstat -b and just netstat

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.