Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);
    }
}