76.0k views
5 votes
How to check open ports in windows server 2019

User Amaralbf
by
8.5k points

1 Answer

2 votes

Final answer:

To check open ports on Windows Server 2019, you can use netstat via Command Prompt or Get-NetTCPConnection in PowerShell, looking for 'LISTENING' statuses to identify open ports.

Step-by-step explanation:

To check open ports on Windows Server 2019, you can utilize the built-in Windows Command Prompt or PowerShell. Here, I'll guide you through using both methods.

Using Command Prompt

One of the most common command-line tools for this task is netstat. To use it, follow these steps:

  • Open Command Prompt as an administrator.
  • Type netstat -ano and press Enter to display a list of active connections and listening ports.
  • Look for the 'LISTENING' status to find open ports.

Using PowerShell

PowerShell offers a more advanced approach:

  • Launch PowerShell as an administrator.
  • Type Get-NetTCPConnection and press Enter.
  • This will show you a detailed overview of all TCP connections, including open ports.

These methods will help you identify which ports are open on your server.

User Jmarceli
by
8.6k points

No related questions found