
program getIP ketik script berikut pada textpad kemudian save file dengan ekstensi .javaimport java.net.*;public class getIP{public static void main (String args[]) throws Exception{InetAddress host = null;host = InetAddress.getLocalHost(); byte ip [] = host.getAddress();for (int i=0; i0) { System.out.print("."); } System.out.print(ip[i] & 0xff);}System.out.println();}}kemudian compile file yang telah dibuat...
Posted by
BLOG GO BLOG