The InetAddress class contains four getter methods that return the hostname as a string and the IP as both a string and a byte array. They are
1. public String getHostName()
2. public String getCanonicalHostName()
3. public byte[] getAddress()
4. public String getHostAddress()
0 Comments
If you have any question please ask?