classnetColarUtils::NetUtils

sys::Obj
  netColarUtils::NetUtils

NetUtils: Networking utilities

findAvailPort

const static Int? findAvailPort(Int startAt := 8080, Int gap := 2, Int maxTries := 20)

Try to find an ounbound local port starting at "StartAt" If startAt binding fails., then keep trying every (gap) port number Up to maxTries tries Returns first available port or null if none where found to be available