Roku Remote Control Script

rokuremote

Hooray for necessity. My Roku digital video player remote controller stopped working yesterday. While it’s pretty cheap to replace I needed to find something I could use in the interim. Since the device will let you telnet to port 8080 and feed in remote commands, my first attempt was to use setup a few bash aliases using netcat like so:

alias ru='echo "press up" | nc -n $rokuIP 8080'
alias rd='echo "press down" | nc -n $rokuIP 8080'
alias rl='echo "press left" | nc -n $rokuIP 8080'



You get the idea. However this got tedious fairly quick and the idea of explaining the use of netcat or telnet to my wife seems frightening.

Instead of living in fear I put together a script using Autoit. Now the Mrs . and I have a  UI that resembles the remote we’re waiting for.  It’s pretty basic and self explanatory. Just enter in the appropriate IP of the device and start using.

You can grab the script and compiled .exe by clicking here.


33 Responses to “Roku Remote Control Script”

  • Robert Levi Durai Says:

    Thanks for sharing this. Really useful. Iam gonna try this out.

  • Claudia Wey Says:

    Brilliant. How do I get the device IP?
    Thanks!

  • Chris Says:

    Worked for me – I kind of doubted this would work but I can’t find my darned remote. Can get a movie tonight now ;)

    Thanks!!

  • Glen Says:

    “Brilliant. How do I get the device IP?
    Thanks!”

    You can get it by looking at your routers DHCP / leased IP logs. Probably the easiest way.

    Another way would be to port scan your network for port 8080 and then trying that IP. http://nmap.org is the best and it’s ported for just about all OS’s out there.

  • Peter Says:

    Fantastic, thanks a lot for posting this!

    You can also get the IP address from the Roku menu, under Settings->Player Info.

  • Janet Z Says:

    This worked in a snap! I’m able to watch movies again while still on the phone with Roku tech support. Thanks!

  • Johnny Says:

    This is fantastic, it works great. Thanks for sharing!!!!

  • Jeff L Says:

    Awesome, thank you. Worked like a charm when I couldn’t find my Roku remote.

  • Paul Wright Says:

    Got a Roku for Christmas. This seems like a handy thing to have.

    Unfortunately, seems like the link no longer works. Is the program available elsewhere?

    —–paul—–

  • Glen Says:

    @Paul Wright
    The link is working now. :)

  • Michael Says:

    Thanks! Works great!

  • Scott Says:

    Thanks a million it worked like a charm. Since my remote is missing I had to use a network scanner to figure out my roku’s ip address.

    I blogged by story at http://tswe.blogspot.com/2010/02/lost-your-roku-remote.html.

    thanks again.

  • Samuel Says:

    @Scott
    I downloaded the stript yesterday and it worked great but that was after spending several hours trying to figure out how to find the ip address.

    TO FIND THE IP ADDRESS- 1. Click the link provided by Scott.
    2. Click on the “SoftPerfect Network Scanner” link.
    3. Scroll down and click “Download” on right side of page.
    4. Install and run the scanner.
    5. Set the ip range (I read somewhere that most of them should look something like 192.168.1.??, so I set the range from 192.168.1.0 to 193.0.0.0 and started scanning. After a second it should give you a few ip addresses and one of these will be the one for your roku player.)
    -To find out which one is the correct one open the rokuRemote application and click Tools > Settings and try the different ip addresses until one works.

    Thanks to Scott for the link.

  • Wub Says:

    Awesome! Thanks for putting this up here. This will work perfectly. Now I can mess with the kids while they’re watching NetFlix! You should put a paypal donation button up or something.

  • Metzger Says:

    Thanks so much – that is an awesome app – I have never accessed IP addresses or routers, etc and was able to get it going.

    Thanks again for posting this info!!!!

  • Kol-Tai Says:

    This is awesome! Thanks very much!

  • Tim Says:

    Brilliant! This saved me a trip to find a universal remote, which probably wouldn’t have the Roku code any how. Plus this is much more fun!

  • jasmel Says:

    Hey,

    Any chance you can turn this into an iPhone app?

  • Glen Says:

    @jasmel: Unfortunately I this off so long and someone else beat me to it. I believe it is called the DVP remote. It works pretty good and can manage multiple devices.

  • Gene W. Says:

    Dude you rock!!!! thanks, just what I needed!

  • jovino Says:

    Hey Glen!

    First comment in 2011! :)

    I’ve also misplaced my remote, and I’ve been using the not-so-perfect Android app in the mean-time and it certainly has its flaws.

    THe idea of a web-app, similar to this seems like a fun idea, and theoretically all it would need is a script to send telnet commands — something I’ve already written for my LED Sign project (http://bunnywarez.com/catalog/sign.php).

    Is there a source for the remote commands listed somewhere? You’ve posted three of them here, and this suggests to me that this might be a pretty simple project to build (famous last words).

    Thanks again for building and posting this project. It’s really inspiring!

    jovino
    bunnywarez.com

  • Anthony Mendez Says:

    I have the remote and the Android app… but I just downloaded this because I can. Thank you! (FYI – running Ubuntu 10.10 and works great without having to move it to Wine.)

  • Nate Says:

    Thank you! This is awesome. Now I can use my roku this weekend while I wait for a new remote to be delivered.

  • Laura Says:

    Thank you! I’ve got 4 kids at home and we lost the roku remote. Just downloaded and ran your script (used the SoftPerfect Network Scanner suggested by Scott Wickham to find the Roku’s IP address)…

    Bless you!
    Laura

  • Radha Says:

    This is a cool tool. I lost my remote last week and already burnt $1.99 buying the iPhone App. Is there anyway you can share rest of the commands with me.

  • Shannon Says:

    I am normally not very good with computers but I came home tonight to find that my dog chewed up my Roku remote. I decided to look online for a solution before flipping out and found this and was so happy that I could still watch my movies without remote till I order one. Thank you to the person that posted this cause I would have been lost without my Netflix

  • Gautam Says:

    Is there a Roku Remote Control Script for macs?

  • Nathan Says:

    Glen – thanks for the app, 20 minutes to find your site, install, configure and watch. I knew that your app was good when the hardest problem people had was finding the Roku IP address ;-)

  • Jasmina Says:

    I tried this and its not working… found the list of IP addresses but when I hit save to file the IP on the “remote” does not change and nothing happens. Not sure what I am doing wrong. My roku is pretty old, could that be the problem?

  • Jasmina Says:

    update- getting error message TCPConnect failed:10051, I do have the correct IP address

  • Biju Says:

    THIS IS AMAZING!!!
    THANK YOU!!! THANK YOU!!! THANK YOU!!!

  • Rosa Says:

    Thank you! You have a beautiful family.

  • Joshua Cagle Says:

    Thanks so much for writing this program. It works excellent!

Leave a Reply