|
NOTA: La traducción de esta documentación es un esfuerzo personal y voluntario, no es un documento oficial de Sun Microsystems
ni Oracle ni está patrocinado por ninguna de estas empresas. Los documentos originales (en inglés) están disponibles en:
http://java.sun.com/docs/books/tutorial/.
Dirija cualquier comentario, petición, felicitación, etc. a tutorialesjava_@RROBA_codexion.com. |
Si desea ayudar a mantener en funcionamiento esta web, colaborar con la traducción de estos documentos o necesita que se traduzca algĂșn capĂtulo en concreto puede realizar una donación directa mediante Paypal:
|
Systems often run with multiple active network connections, such as wired Ethernet,802.11 b/g(wireless), and bluetooth. Some applications might need to access this information to perform the particular network activity on a specific connection.The
java.net.NetworkInterfaceclass provides access to this information.This lesson guides you through some of the more common uses of this class and provides examples that list all the network interfaces on a machine as well as their IP addresses and status.
What Is a Network Interface?
This page describes a network interface and explains why you might want to use it.Retrieving Network Interfaces
This page contains an example that illustrates how a client program can retrieve all the network interfaces on a machine.Listing Network Interface Addresses
This page shows you how to list the IP addresses assigned to all the network interfaces on a machine.Network Interface Parameters
This page shows you how to determine whether a network interface is running or if the network interface is a loopback interface, a point-to-point interface, or a virtual interface. You can also learn how to determine if the interface supports multicasting.