demo of Java Network instance

Java instance - get the IP address of the specified host The following example demonstrates how to use the InetAddress.getByName() method of the InetAddress class to obtain the IP address of the specified host (web address): import java.net.InetAddress; import java.net.UnknownHostException; public class GetIP { public static void main(St ...

Posted on Thu, 02 Dec 2021 19:38:42 -0500 by hchsk