[server][Utils] Add a new function: Utils::getUsingPortInfo().