1

I m converting C# into JAVA (android) and I m trying to get IP address with help of DNS.

I m trying to get IP address with help of DNS.

IPAddress[] addr = Dns.GetHostEntry(Dns.GetHostName()).AddressList;

How to get the same result in java and which classes should I use?

Hille
  • 2,123
  • 22
  • 39
Vojtěch Prchal
  • 141
  • 1
  • 2
  • 11

0 Answers0