Net::ResolveAddress

Net::ResolveAddress(address): String

Resolve IP address to host name

Table 1. Parameters

address

String

IP address to resolve host name

Return

Host name, or null if the address is invalid or cannot be resolved.

println(Net::ResolveAddress("127.0.0.1")); //Will print "localhost"