Report By Name : NetworkInterface « Network Protocol « Java
- Java
- Network Protocol
- NetworkInterface
Report By Name
import java.net.NetworkInterface;
public class Main {
static public void main(String args[]) throws Exception {
NetworkInterface ni = NetworkInterface.getByName(args[0]);
System.out.println(ni);
}
}
Related examples in the same category