Using netstat -aon | findstr /I "1234"
, I can monitor that this port is open, but there is an issue: this is what the result looks like:
UDP 0.0.0.0:1234 *:* 5064UDP 0.0.0.0:1234 *:* 5064UDP 0.0.0.0:1234 *:* 5064UDP 0.0.0.0:1234 *:* 5064
So, whenever my program (with Progress ID 5064) fails opening that port, I have no idea when this actually happens.
So, I would like something like:
while true: netstat -aon | findstr /I "1234" time /Tend
(I already checked netstat /?
, but I don't find any switch which shows the timestamp.)
Does anybody have an idea?
(I'm working on Windows Server 2019.)