Try to find a free port between 9222 and 9222 + max sessions
If port is not assigned and using server sockets check that the port is actually free, return port and add to assigned ports collection
If no port found – look for a port in the releasedports collection and using server sockets check that the port is actually free, return port and add to assigned ports collection
As part of browser tear down – ports are added to the releasedports collection
Have other questions? Access our full knowledge base!