Uncategorized

  • Home
  • /
  • Uncategorized
  • )
  • 20
    Dec

    Check if given IP address is IPv4 or IPv6

    Library function that can be used to determine if the network address shared is IPv4 or IPv6   ==== package testCases; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; public class...

    Read More
  • 20
    Dec

    Get connection interface details from your system

    Following program lists “Display name” and “InetAddress” to all network connections available   ============= package testCases; import java.io.*; import java.net.*; import java.util.*; import static java.lang.System.out; public class ListNets {...

    Read More
  • 20
    Dec

    Discovering systems up and running on a subnet

    This example is crude form of discovering all systems up and running (at time of execution) to run discovery of subnet. ============ package testCases; import java.io.IOException; import java.net.InetAddress; import...

    Read More