In order to lock a network tuner, I need to get the IP address of an interface on the machine. The tuner is a HDHomeRun by SiliconDust, but that shouldn’t matter for what I’m trying to do.
Of course this can be gotten with BSD socket calls. Or Win32 API calls. But Kodi seems to know its own IP address, so there should be an API call for this.
I found this in searching: http://forum.kodi.tv/showthread.php?tid=…pid2508152 but that is using the output of the “ifconfig” command. I don’t think that will work for Windows.
What’s the proper way to get this information out of Kodi itself?