Makefile added / pkg-config descriptor
[metux-java.git] / ip / Lookup.java
blob8f831599db0343305713e02f718d7e27cf121306
2 package org.de.metux.ip;
4 import java.net.InetAddress;
5 import java.net.UnknownHostException;
6 import org.de.metux.util.StrSplit;
8 public class Lookup
10 public static String getIP_str(String name)
11 throws UnknownHostException
13 // String str = InetAddress.getByName(name).toString();
14 // System.err.println("getIP_str:: "+str);
16 return StrSplit.split(
17 InetAddress.getByName(name).toString(),
18 "/")
19 [1];