pass only available ports to mocks