The INETADDRESS class inetaddress class is used on the host address on behalf of the Internet. An instance of inetaddress is a four byte of the IP address consisting of host name and IP address. It is usually ABCD, for example: 61.255.255.0 To users To remember that these numbers are very difficult, there is a concept of host name. The appearance of the host name is convenient, and the user does not have to remember a network address of up to 12 digits.
This class does not construct the main method of the INETDRESS class byte [] getaddress () // Get the IP address static inetaddress [] getAllByName (String host) // Get the host name to get the IP address static inetaddress getByname (String host) // through the host Name to get the IP address string gethostaddress () // Get the IP address string gethostname () // get the host name static inetaddress getLocalHost () // get the local machine's inetdress object () // Judging whether it is a multicast address