import
java.net.*;
import
java.util.*;
public class
Interface_network
{
public static void main(String[] args) throws
Exception
{
Enumeration interfaces = NetworkInterface.getNetworkInterfaces();
while (interfaces.hasMoreElements()) {
NetworkInterface ni =
(NetworkInterface) interfaces.nextElement();
System.out.println(ni);
}
}
}