Overview

More Admin Tools

Articles

Downloads

 

TCP port check Windows | Sep-22-2024 PortCheck, Download bei heise

PortCheck 3.0 - TCP Port Check for Windows 11

PortCheck is a portable command line tool for administrators, network and firewall admins. You can check if a remote device answers on a certain TCP port. PortCheck displays the result (reachable / not reachable) including the response time. It has many additional functions such as e-mail notification or sound output. A short overview:

  • Displays permanently whether devices answer on a particular TCP port
  • Showing response time in milli seconds with colored output (red/green)
  • Checks multiple devices simultaneously on multiple ports
  • Complete portscans possible - on predefined or self defined ports
  • Acoustical signal (beep) for reachable or unreachable ports
  • Permanent logging with date and time possible
  • Returns ERRORLEVEL for use in own batch files
  • Runs on Windows 7 / 8 / 10 / 11 and Windows Server 2008 / 2012 / 2016 / 2019
  • No installation required - portable .exe file
  • Free of cost - also for professional use

Check TCP port 445 of a remote host with -t (continuously). Option -st for date and time in every line (timestamp).

System requirements

PortCheck runs on Windows 7 / 8 / 10 / 11 (32 or 64 bit). It requires .NET Framework 3.5. PortCheck is a portable tool, so no installation is required.

Return value

PortCheck returns ERRORLEVEL 0 or 1 in dependence of the result. ERRORLEVEL is 1 if the port answers, and 0 if there is no response. You can use this value in your own batch files. For example, to execute a script only when a TCP port is available.


TCP port check 443 returns errorlevel 0 and TCP port check 3389 returns 1


FAQ

How much does PortCheck cost?

PortCheck is free - also for professional use. Please read the licensing information.

What's new in version 3.0.0.16?

IPv6 support, user-defined ports, updated known ports and some bug fixes. Here is the full What's new list.

Is there a graphical version of PortCheck with GUI available?

Yes. PingTool ist a graphical tcp port check Software for Windows 11. The results are displayed in a GUI. The PortCheck command line tool is also integrated in PingTool. You can have a look at this YouTube video:

How to check if a port is open on a remote host in Windows 11?

Just run PortCheck.exe from the command line to test a TCP port: PortCheck.exe <hostname> <port number>. Example: PortCheck.exe Fileserver1 445


Download

You can download PortCheck here as a zip file. It contains 4 files.

Product Version Language License key Action
PortCheck 3.0.0.16 english not necessary Download

Digital signature

PortCheck.exe is shipped with a digital signature of Lugrain Software GmbH. Only with this signature you get the original PortCheck tool.
 

Alternative download locations
You can also download the PortCheck tool from a reputable German website (heise.de):

PortCheck, Download bei heise

...or download PortCheck from SOFTPEDIA:


 

Installation

PortCheck is a portable tool, no installation is required.

  1. Extract the zip file
  2. Copy the files into a folder, e.g. C:\Program Files (x86)\PortCheck
  3. Open a command line window, navigate to the PortCheck folder and type PortCheck -i


Screenshots

PortCheck
PortCheck on two different ports
  PortCheck
Checking the "known ports"
     
PortCheck   PortCheck
Checking an IPv6 address   The port check tool with easy-to-understand text


Licensing

PortCheck is free for private and professional use. You can use PortCheck without any restrictions, in unlimited number and with unlimited duration for free. You are not allowed to distribute PortCheck alone or as part of your software. This requires a written permission from Lugrain Software GmbH.


Syntax


PortCheck 3.0.0.16 by Lugrain Software 05/2024
Checks if a remote TCP port is responding.

Easy syntax:

PortCheck [-t] [-i] <hostname(s)> <port(s)>

Examples:

PortCheck -i               # interactive (ask for input)
PortCheck MyServer 80      # single check
PortCheck -t MyServer 443  # continuous

More complex syntax:

PortCheck [-t] [-i] [-w:<pause in s>] [-st] [-nc] [-oo] [-nl] [-tc] [-bp] [-bp+] [-4] [-6]
          [-rcf:<batch file when closed>] [-rcc:<closed count>] [-rco] [-rch]
          [-rof:<batch file when open>] [-roc:<open count>] [-roo] [-roh]
          [-replaceopentext:<text when open>] [-replaceclosedtext:<text when closed>]
          <hostname(s)> <port(s)> [<timeout in ms>] [<filename of logfile>] [<description>]


hostname(s)    One or more hostnames, separated by comma (no blanks)
port(s)        One or more TCP port numbers (separated by comma), a port
range          <startport>-<endport> or all wellknown ports 'knownports' or 'kp'
timeout        Can be 100-1000 (default: 1000ms)
filename       Logs everything to a specified file, including date and time
description    Your own description for the specified port

-t    Check the specified ports continuous
-w    Wait some time between checks (this is not the timeout)
-4    Prefer IPv4 (if both are available)
-6    Prefer IPv6 (if both are available)
-st   Show date and time in every line
-nc   No color: use default color instead of green and red
-oo   Only open: show only open ports
-nl   No lines: don't add separators
-tc   Toggle colors: swap green and red (port opened = alarm)
-bp   Beep: send acoustical signal in case of alarm (only with -t)
-bp+  Beep: send acoustical signal in case of OK and timeout (only with -t)

Examples:

PortCheck www.bing.com 80
PortCheck -t www.bing.com 80
PortCheck oracle-server1 1521 500 c:\temp\logfile.txt oracle
PortCheck -t -bp MyFileserver 139
PortCheck -t -w:10 MyFileserver 139,445
PortCheck -t -tc -bp sql-server1,sql-server2 1433 300
PortCheck -oo MyServer 1-1024
PortCheck MyServer knownports
PortCheck -t -rcf:"c:\data\closed.cmd" -rcc:3 -rco Citrix-Server 1494
PortCheck -t -replaceclosedtext:"Machine isn't working properly. Please call 1234!" Citrix-Server 1494

Returns ERRORLEVEL=0 when port is closed, ERRORLEVEL=1 when port is opened.



Important TCP ports

Every server, client and network device provides TCP ports via which a TCP connection can be established. If you monitor these TCP ports, you can get a good impression of whether the device is working properly.

Here's a list of often used TCP ports with port number:

21 - FTP
22 - SSH
23 - Telnet
25 - SMTP
80 - HTTP
110 - POP3
135 - DCE / WMI
139 - NetBIOS
143 - IMAP4
443 - HTTPS
445 - SMB
1433 - MS SQL
1494 - ICA (Citrix)
1521 - Oracle
3389 - RDP
5060 - SIP
8080 - HTTP alternative
8443 - HTTPS alternative



>>> PortCheck tutorial

Utility: PortCheck
Category: TCP Port Check Tool
Content: TCP Port Check Windows 11
Type: Command line (cmd), Port check cmd, TCP ports available, test tcp port command line, How to check if a port is open cmd
Operating Systems: Windows 7 / Windows 8 / Windows 10 / Windows 11 / Windows Server 2008 / Windows Server 2012 / Windows Server 2016 / Windows Server 2019 / Windows Server 2022