lunes, junio 07, 2010

Averiguar mi IP y HOST con Java InetAddress

System.out.println(InetAddress.getLocalHost().getHostAddress()); // ip
System.out.println(InetAddress.getLocalHost().getHostName()); // host

No hay comentarios.: