dcsimg

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?

Alexander K

You can use something like:

          InetAddress ia=InetAddress.getLocalHost();
          InetAddress[] a=ia.getAllByName(ia.getHostName());