import java.net.InetAddress;
public class FindhostInfo {
public static void main(String[] args) throws Exception {
InetAddress addr = InetAddress.getLocalHost();
System.out.println("Local Host Address:" + addr.getHostAddress());
System.out.println("Local Host Address:" + addr.getHostName());
}
}
Looking for this article. Get help from this and that is beneficial to the newbie like me.
ReplyDeletehttps://isphack.blogspot.com/2018/02/how-to-find-working-host-for-free.html