how do we find out which ports are available ?....Sun 5.8

Thanks
Ron