ReportByAddress.java Source code

Java tutorial

Introduction

Here is the source code for ReportByAddress.java

Source

import java.net.InetAddress;
import java.net.NetworkInterface;

public class ReportByAddress {
    static public void main(String args[]) throws Exception {
        InetAddress ia = InetAddress.getByName("www.google.ca");
        NetworkInterface ni = NetworkInterface.getByInetAddress(ia);
        System.out.println(ni);
    }
}