Windows

netstat

SafeConnections and listening ports

netstat -ano

Lists TCP/UDP connections and listening ports. -ano adds PIDs; pipe to findstr to filter.

Examples

  • netstat -ano | findstr :443PID using port 443
  • netstat -ano | findstr LISTENINGAll listening ports

Syntax

netstat -ano [| findstr <port|pid>]

Before you run it

Read-only.

Used when you see

Port already in use
1
Find the port and PIDFilter with findstr
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store