ip 를 받아오고 있습니다
public static String getLocalIpAddress() { // ip address
try {
for (Enumeration en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
NetworkInterface intf = (NetworkInterface) en.nextElement();
for (Enumeration enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {
InetAddress inetAddress = (InetAddress) enumIpAddr.nextElement();
if (!inetAddress.isLoopbackAddress()) {
return inetAddress.getHostAddress().toString();
}
}
}
} catch (SocketException ex) {
}
return null;
}
젤리빈 버젼에선 정상적인 아이피가 뜨는데...
킷캣에선 이상하게 아이피가 2011:4230:32:8eac:7bcb 이런식으로 넘어 오는데 무슨 문제 인가요