On this page

    M

    os.hostname

    History
    os.hostname(): string
    Returns:string

    Returns the host name of the operating system as a string.