Pagina 1 di 1
JAVA - estrarre indirizzi IPv4 e IPv6 e nome interfaccia con NetworkInterface
Inviato: mercoledì 1 ottobre 2008, 10:51
da pegasus_1987
Come da titolo..riesco ad estrarre i nomi di tutte le interfacce,ma nn riesco ad avere i loro IP..potete aiutarmi?
Re: JAVA - estrarre indirizzi IPv4 e IPv6 e nome interfaccia con NetworkInterface
Inviato: mercoledì 1 ottobre 2008, 11:00
da Lord_Dex
http://java.sun.com/javase/6/docs/api/j ... rface.html
Metodi:
- Enumeration getInetAddresses(): Convenience method to return an Enumeration with all or a subset of the inetAddresses bound to this network interface.
- List getInterfaceAddresses(): Get a List of all or a subset of the InterfaceAddresses of this network interface.