Class Internet

java.lang.Object
velo.ladaalpha.fields.internet.Internet

public class Internet extends Object
The Class Internet.
  • Constructor Details

    • Internet

      public Internet()
  • Method Details

    • fetch

      public static String fetch(String url)
      Fetch.
      Parameters:
      url - the url
      Returns:
      the string
    • scanNetwork

      public static ArrayList<String> scanNetwork(int T)
      Scan network.
      Parameters:
      T - the t
      Returns:
      the array list
    • scanPorts

      public static ArrayList<Integer> scanPorts(String ip)
      Scan ports.
      Parameters:
      ip - the ip
      Returns:
      the array list
    • getURLIP

      public static String getURLIP(String s)
      Gets the urlip.
      Parameters:
      s - the s
      Returns:
      the urlip
    • getIPHostname

      public static String getIPHostname(String ip)
      Gets the IP hostname.
      Parameters:
      ip - the ip
      Returns:
      the IP hostname
    • getLANIP

      public static ArrayList<String> getLANIP()
      Gets the lanip.
      Returns:
      the lanip
    • getLocalIP

      public static String getLocalIP()
      Gets the local IP.
      Returns:
      the local IP
    • getPublicIP

      public static String getPublicIP()
      Gets the public IP.
      Returns:
      the public IP
    • reachHost

      public static boolean reachHost(String ip, int timeout)
      Reach host.
      Parameters:
      ip - the ip
      timeout - the timeout
      Returns:
      true, if successful
    • isConnected

      public static Boolean isConnected()
      Checks if is connected.
      Returns:
      the boolean