Use ping command for Building Network instead of InetAddress