This is the documentation for the development version.
There are no official binaries for it; build it from the source code in git.
Download links on these pages work only after the release.
For the current release, see version 7.0.
Net::GetLocalHostName
- Net::GetLocalHostName(fullyQualified=null): String
-
Get local host name. If optional argument is true, fully qualified name will be returned.
Table 1. Parameters fullyQualified
Boolean
Optional. True if fully qualified name should be returned.
ReturnHost name
println(Net::GetLocalHostName()); //Will print local host name, for example "server1" println(Net::GetLocalHostName(true)); //Will print fully qualified name, for example "server1.example.com"