Navigation:  Command Line Applications > CheckTCP >

Usage

Top  Previous  Next

Command Line Parameters

 

checktcp hostname | ipaddress port /show /timeout:timeout

 

hostname / ipaddress

Hostname or IP address to connect to

port

TCP port on host to connect to, only one port can be specified at one time

/show

Displays any data sent by the remote host through the TCP connection. This works with some protocols, such as SMTP or SSH

/timeout:timeout

Override the default timeout of 3 seconds when specifying the /showheader switch.

 

Examples

 

Example 1: Check whether port 25 on host smtp.aol.com is open

 

checktcp smtp.aol.com 25

 

Example 2: Check whether port 25 on host mail.hotmail.com is open and display data

 

checktcp mail.hotmail.com 25 /show

 

Sample Output

 

c:\>checktcp mail.hotmail.com 25 /show

-------------------------------------------------------------

CheckTCP V1.0 by NETIKUS.NET [ compiled on May  9 2004 ]

                                 (support@netikus.net)

-------------------------------------------------------------

Command-line utility to check whether a TCP port is open.

 

Status: mail.hotmail.com:25 is open

Data: 220 mc9-f37.hotmail.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.6824 ready at  Sun, 9 May 2004 19:11:01 -0700