Java program to scan network for open ports