TCP port check with timestamp to file

All about the TCP Port Checker
Post Reply
Supporter
Posts: 53
Joined: Mon 9. Dec 2013, 19:21

TCP port check with timestamp to file

Post by Supporter »

Hi everyone,

people often ask how to write a permanent TCP port check over days with response time in a log file. This can be done very easily with PortCheck:

PortCheck.exe -t -st www.google.com 443 1000 c:\temp\logfile.txt

The logfile looks like this:

07/27/2024 09:46:10 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 8ms
07/27/2024 09:46:11 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 9ms
07/27/2024 09:46:13 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 10ms
07/27/2024 09:46:14 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 11ms
07/27/2024 09:46:15 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 10ms
07/27/2024 09:46:16 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 9ms
07/27/2024 09:46:17 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 11ms
07/27/2024 09:46:18 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 9ms
07/27/2024 09:46:19 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 12ms
07/27/2024 09:46:21 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 9ms
07/27/2024 09:46:22 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 10ms
07/27/2024 09:46:23 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 10ms
07/27/2024 09:46:24 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 11ms
07/27/2024 09:46:25 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 9ms
07/27/2024 09:46:26 AM - www.google.com - 142.250.74.196 - Port 443 - OPEN - 9ms


-t means "continuously" and -st writes the timestamp to each line (show time).

More information on the PortCheck homepage: https://www.portcheck-tool.com

Best regards
Lugrain Support

Who is online

Users browsing this forum: No registered users and 1 guest