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 May 7, 2012
Alexander K You can use something like:
InetAddress ia=InetAddress.getLocalHost(); InetAddress[] a=ia.getAllByName(ia.getHostName());