The InetAddress is Java’s representation of an IP address. Instances of this class are used together with UDP DatagramSockets and normal Socket’s and ServerSocket’s.
Is INET address same as IP address?
Typically, ifconfig can only be used under a superuser account in your terminal. A list of all your network interfaces will appear. Following the heading of the interface whose IP address you’re searching for, you will see a “inet addr:” section containing your IP address.
What does the Java net INET address class represent?
Explanation: The java. net. InetAddress class represents IP Address of a particular specified host. It can be used to resolve the host name from the IP address or the IP address from the host name.