import java.net.InetAddress; import java.net.NetworkInterface; public class Main { static public void main(String args[]) throws Exception { InetAddress ia = InetAddress.getByName(args[0]); NetworkInterface ni = NetworkInterface.getByInetAddress(ia); System.out.println(ni); } }