0

DCHP & Proxy settings



Hi Can I use the set DCHP autorun.brs and add to it, (Proxy with Username and Password) nc.SetProxy("http://username:password@proxy.yourcompany.com:port/") to keep the 1010 DCHP but using a proxy. To put these settings into the unit do you replace the autorun.brs on the card with the autorun.brs below, then reboot the unit Regards Andrew REM Start of script EnableZoneSupport(1) REM Create text widget to display onscreen messaging mode=CreateObject("roVideoMode") registry=CreateObject("roRegistry") rect1 = CreateObject("roRectangle", mode.GetSafeWidth()/4, mode.GetSafeHeight()/2, 500, 40) rect2 = CreateObject("roRectangle", mode.GetSafeWidth()/4, mode.GetSafeHeight()/2+42, 500, 40) text1 = CreateObject("roTextWidget", rect1, 1, 1, 0) text2 = CreateObject("roTextWidget", rect2, 2, 1, 0) print type(rect) print type(text) text1.Show() text1.PushString("DHCP Network Configuration") sleep(5000) REM Adjust network settings here if necessary REM nc = CreateObject("roNetworkConfiguration", 0) nc.SetDHCP() nc.SetProxy("http://username:password@proxy.yourcompany.com:port/") rem nc.SetTimeServer("mytimeserver.com") 'Set Time server here, add address inside quotes text1.Hide() ok=nc.Apply() registry.Flush() text2.PushString("Settings Updated. Remove Network Configuration Script from flash card.") if ok=true then text2.Show() sleep(30000) REM End of script

8 comments

  • 0
    Avatar
    RokuLyndon


    Yes, you can use dhcp, and add proxy as you descdribed....
  • 0
    Avatar
    Andrew Dunn


    Thank you for your quick response

    All I need to do is put the only the Set DCHP autorun.brs file onto a empty SD card and reboot the unit?

    Don't know why this was posted twice before.
    Andrew
  • 0
    Avatar
    RokuLyndon


    Yes, that's all.
  • 0
    Avatar
    Andrew Dunn


    Hi
    I have just returned to site to add the proxy settings, RSS is now working.
    Now, when I startup the unit with the orignal card and files, it updates new content straight away, then will not update again, it was originally set for 30sec, is this set in the registry, if so could you tell me how I can reset it back to 30seconds.
    Regards
    Andrew
  • 0
    Avatar
    Andrew Dunn


    Hi
    How do you reset all registry settings for no proxy and DCHP.

    Regards
    Andrew
  • 0
    Avatar
    RokuLyndon


    <!-- l --><a class="postlink-local" href="http://forums.roku.com/viewtopic.php?f=19&t=25361">viewtopic.php?f=19&t=25361</a><!-- l -->

    This thread has a script for setting the unit back to DHCP. If you used the brightauthor setup to manually set the IP address, then you can use the same setup files to set the unit for DHCP.

    If you used a general proxy setting, not just one for RSS, then you can use the same command with an empty string to set the proxy to nothing.
  • 0
    Avatar
    Andrew Dunn


    Sorry to continue on this topic, how do I set up the proxy for internet access, and local for updating.
    Andrew
  • 0
    Avatar
    RokuLyndon


    The other proxy thread, sticky, had a script for setting the proxy server.
Please sign in to leave a comment.