[Info-vax] How to tell if TCP/IP port is in use

Steven Schweda sms.antinode at gmail.com
Wed Jan 4 08:28:58 EST 2012


On Jan 4, 1:51 am, JF Mezei <jfmezei.spam... at vaxination.ca> wrote:

> netstat -a  if I remember correctly. It will give you a list of ports
> being lisnened to and active connections. You can then scan for
> "LISTEN"  AND 1234

   Why didn't I think of that?  No, wait, ...

   Note that the foreign-command symbol for "netstat" is
defined in SYS$MANAGER:TCPIP$DEFINE_COMMANDS.COM, which may
or may not have been done by any particular user, using "-an"
instead of "-a" avoids the potentially slow DNS look-ups, and
there are good reasons to search for "*.1234 " instead of
(plain) "1234".



More information about the Info-vax mailing list