public static String getIpAddress(String name, int index, boolean localHost) { InetAddress inetAddr = getInetAddress(name, index, name, localHost); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddressByHost(String host, boolean localHost) { InetAddress inetAddr = getInetAddress(null, 0, host, localHost); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, int index) { InetAddress inetAddr = getInetAddress(name, index, name, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, boolean localHost) { InetAddress inetAddr = getInetAddress(name, 0, name, localHost); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddressByHost(String host, boolean localHost) { InetAddress inetAddr = getInetAddress(null, 0, host, localHost); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
/** * Returns the <code>String</code> value of the 0-th IP address assigned * to the network interface or host having the given <code>name</code>, * or <code>null</code> if that IP address cannot be retrieved. */ public static String getIpAddress(String name) { InetAddress inetAddr = getInetAddress(name, 0, name, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, int index) { InetAddress inetAddr = getInetAddress(name, index, name, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddressByLocalHost() { InetAddress inetAddr = getInetAddress(null, 0, null, true); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, boolean localHost) { InetAddress inetAddr = getInetAddress(name, 0, name, localHost); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddressByHost(String host) { InetAddress inetAddr = getInetAddress(null, 0, host, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
/** * Returns the <code>String</code> value of the 0-th IP address assigned * to the network interface or host having the given <code>name</code>, * or <code>null</code> if that IP address cannot be retrieved. */ public static String getIpAddress(String name) { InetAddress inetAddr = getInetAddress(name, 0, name, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, String host) { InetAddress inetAddr = getInetAddress(name, 0, host, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, int index, String host) { InetAddress inetAddr = getInetAddress(name, index, host, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, int index, String host, boolean localHost) { InetAddress inetAddr = getInetAddress(name, index, host, localHost); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddressByLocalHost() { InetAddress inetAddr = getInetAddress(null, 0, null, true); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, String host) { InetAddress inetAddr = getInetAddress(name, 0, host, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, int index, String host) { InetAddress inetAddr = getInetAddress(name, index, host, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, int index, String host, boolean localHost) { InetAddress inetAddr = getInetAddress(name, index, host, localHost); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddress(String name, int index, boolean localHost) { InetAddress inetAddr = getInetAddress(name, index, name, localHost); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }
public static String getIpAddressByHost(String host) { InetAddress inetAddr = getInetAddress(null, 0, host, false); if(inetAddr != null) return inetAddr.getHostAddress(); return null; }