Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
auzy
Binge Watcher

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.
0 Kudos
7 REPLIES 7
TheEndless
Channel Surfer

Re: get local IP address

Not currently. No.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
kbenson
Visitor

Re: get local IP address

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.
-- GandK Labs
Check out Reversi! in the channel store!
0 Kudos
auzy
Binge Watcher

Re: get local IP address

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.
0 Kudos
TheEndless
Channel Surfer

Re: get local IP address

There was some discussion of it in this thread: viewtopic.php?f=34&t=30907&p=189319
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Anonymous
Visitor

Re: get local IP address

As of 2.8:
roDeviceInfo.GetIPAddrs() returns an Associative Array of device interface: IP address pairs.
0 Kudos
TheEndless
Channel Surfer

Re: get local IP address

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

NICE!
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
timber03
Visitor

Re: get local IP address

"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 🙂
Channels created
--------------------
REDBULLTV - RedBull's online sports channel. All sports, all the time.
JTV - Jewelry TV

Other Projects/Creations
-----------------------------
http://www.socialnetworkinc.com - Your Community. Connected.
0 Kudos