Getting to know the device name of my NReal Light AR glasses

Hello there,

I am currently working on attempting to connect two NReal Light AR glasses. Currently, I am using a method that basically finds a device’s IP address using the device’s hostname.
For example, in the function below:

private string GetServerIPAddress(string hostName)
{
    try
    {
        IPHostEntry hostEntry = Dns.GetHostEntry(hostName);
        foreach (IPAddress address in hostEntry.AddressList)
        {
            if (address.AddressFamily == AddressFamily.InterNetwork)
            {
                return address.ToString();
            }
        }
    }
    catch (Exception ex)
    {
        Debug.LogError($"Error getting server IP address: {ex.Message}");
    }

    return null;
}

I insert the name of my Laptop, and I get the IP address automatically. I have tried doing it directly on my glasses and it prints the device name “QCOM-BTD”, but the function does not print any IP addresses.

Is there a correct way to get the IP address of my glasses, even when it is connected to different Wifi? Even if this way is not possible, are there any other ways to get the IP address of the glasses? I hope anyone viewing this topic can assist me with this issue. Thank you for reading this.