instead of static port numbers, pickPort using ServerSocket(0) is used