자신의 IP 알아내기
try{ InetAddress ownIP=InetAddress.getLocalHost(); System.out.println("IP of my system is := "+ownIP.getHostAddress()); }catch (Exception e){ System.out.println("Exception caught ="+e.getMessage()); } [출처] java 자신 아이피(ip) 구하기|작성자 Acuros
2014.06.23