IP sddress in JAVA programming


import java.net.InetAddress;
import java.net.UnknownHostException;

public class IP {

    public static void main(String[] args) throws UnknownHostException {
        System.out.println(InetAddress.getLocalHost());
    }

}

No comments:

Post a Comment