get local IP address

Is there any way to get the IP address of the Roku? As I look through the docs I just can’t find out how. roDeviceInfo would have been a nice spot for it.

Not currently. No.

It’s been requested before, and Roku said they added it as a future feature request, but specifically that there were no guarantees. I assume you want it so you can do a local network service discovery of some type. Your best bet is probably to have the user specify a network or IP, and base everything off that.

OK, that’s what I’ll pencil in for now: the user enters their IP address. Thanks for the info. Searching for words like “IP address” is apparently a journey in this forum.

The experiment is to allow remote catalog browsing (browser, mobile app, etc.) and use the External Control Protocol to launch the app and play a specific video.

There was some discussion of it in this thread: viewtopic.php?f=34&t=30907&p=189319

As of 2.8:
roDeviceInfo.GetIPAddrs() returns an Associative Array of device interface: IP address pairs.

“RokuPatrick” wrote:
As of 2.8:
roDeviceInfo.GetIPAddrs() returns an Associative Array of device interface: IP address pairs.
NICE!

“TheEndless” wrote:

“RokuPatrick” wrote:
As of 2.8:
roDeviceInfo.GetIPAddrs() returns an Associative Array of device interface: IP address pairs.
NICE!

I agree.. thanks for that nugget of syntax :slightly_smiling_face: