Answer the question
In order to leave comments, you need to log in
Why does getHostName return an IP address and not a hostname?
Why does getHostName return an IP address and not a hostname?
InetAddress inetAddress = InetAddress.getByName("93.186.225.193");
System.out.println(inetAddress.getHostName());
Answer the question
In order to leave comments, you need to log in
There is no PTR record defined for this address, so reverse DNS lookup is not possible.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question