The tee filter iterates over the available ports and finds the first available network listener and tries to connect. This allows the use of UNIX domain sockets with services that are targeted by the tee filter.