My computer is mapped to more than one IP adress. From my program, how can I retrieve all the IP addresses the machine is mapped to?
Created Oct 29, 2001
Alexander K You can use something like:
InetAddress ia=InetAddress.getLocalHost();
InetAddress[] a=ia.getAllByName(ia.getHostName());