This is an old version of the Octave manual. Find the latest version at: https://docs.octave.org/latest.

36.4 Networking Utilities

 
: name = gethostname ()

Return the hostname of the system where Octave is running.