Description: Java InetAddress class is used to describe the IP addresses in the class. It is in the java.net package. In Java, classes were used to describe Inet4Address and Inet6Address IPv4 and IPv6 addresses. These two classes are a subclass of InetAddress. Since there is no public constructor InetAddress, therefore, to create the InetAddress object, you must have to rely on its four static methods. InetAddress can be obtained by getLocalHost this machine InetAddress object, you can also getByName, getAllByName and getByAddress InetAddress object by the remote host.
File list (Check if you may need any files):
创建InetAddress对象的四个静态方法.docx