Java InetAddress getHostAddress() methodThe getHostAddress() method of InetAddress class returns the IP address string in textual presentation. Syntax:ReturnsIt returns the raw IP address in a string format. Example 1Test it NowOutput: 172.17.0.2
Next TopicInetAddress Class
|