Skip to content

Files

Latest commit

7d83729 · May 2, 2024

History

History
26 lines (21 loc) · 554 Bytes

getlocalhostname.adoc

File metadata and controls

26 lines (21 loc) · 554 Bytes

Net::GetLocalHostName()

Net::ResolveAddress(address, fullyQualified) => String

Get local host name. If optional argument is true, fully qualified name will be returned.

Table 1. Parameters

address

String

IP address to resolve host name

fullyQualified

Boolean

Optional. True if fully qualified name should be returned.

Return

Host name

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