JAVA - estrarre indirizzi IPv4 e IPv6 e nome interfaccia con NetworkInterface
-
pegasus_1987
- Scoppiettante Seguace

- Messaggi: 314
- Iscrizione: mercoledì 25 ottobre 2006, 4:40
JAVA - estrarre indirizzi IPv4 e IPv6 e nome interfaccia con NetworkInterface
Come da titolo..riesco ad estrarre i nomi di tutte le interfacce,ma nn riesco ad avere i loro IP..potete aiutarmi?
- Lord_Dex
- Prode Principiante
- Messaggi: 235
- Iscrizione: venerdì 11 maggio 2007, 12:59
- Località: Bologna
- Contatti:
Re: JAVA - estrarre indirizzi IPv4 e IPv6 e nome interfaccia con NetworkInterface
http://java.sun.com/javase/6/docs/api/j ... rface.html
Metodi:
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.
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 6 ospiti