Actually - if this is all on the same server (not seeing which ports are listening on a remote server), you could try starting to listen on a port and see if it fails. Presumably, a failure would only indicate that the port is already in use. Here's the code for that:
Class DC.Demo.PortAvailability
{
ClassMethod IsLocalPortInUse(pPort As %Integer) As %Boolean
{
Quit '##class(%IO.ServerSocket).%New().Open(pPort,0)
}
}That would probably require less convincing of the server guys. :)
- Log in to post comments