This class of java in "java.net" represents an Internet Protocol (IP) address. InetAddress class is used to create and manipulate IP objects. It does not have a public constructor. The object of this class can be obtained using its static methods getLocalHost(), getByName(), and getAllByName(). It has several useful methods for obtaining host names and IP addresses, to check if the InetAddress is an link local address etc.
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: December 12, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles