How to get IP address and Mac address in app development

Hello, When i write like this

webOSDev.connection.getStatus({
            onSuccess: function (res) {
                console.log("网络信息:",res);
                if (res.isInternetConnectionAvailable === false) {
                    // pop up network error message
                    console.log("网络未连接");
                } else {
                    if (res.wired) {
                        // do something
                        console.log("有线网络已连接");
                    } else if (res.wifi) {
                        // do something
                        console.log("无线网络已连接");
                    }
                }
            },
            onFailure: function (res) {
                // API calling error
            },
            subscribe: true,
        });

I got the following result, there is no IP address in it,why?
image

Please share the following information.

  • TV model name: (You can check this in the Settings > General > About This TV menu.)
  • TV software version:
  • webOS TV version: (You can check this in the About This TV > TV Information menu.)
  • Region:

I want to get it through code thanks

Please share your TV information as above. Thank you.