Support/Forums/BrightSign General Discussion

DCHP & Proxy settings

Andrew Dunn
posted this on May 21, 2010 11:02 PM



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
 

Comments

User photo
RokuLyndon


Yes, you can use dhcp, and add proxy as you descdribed....
May 21, 2010 11:59 PM
User photo
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
May 22, 2010 12:09 AM
User photo
RokuLyndon


Yes, that's all.
May 22, 2010 06:41 AM
User photo
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
June 08, 2010 02:31 PM
User photo
Andrew Dunn


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

Regards
Andrew
June 09, 2010 06:01 AM
User photo
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.
June 09, 2010 03:32 PM
User photo
Andrew Dunn


Sorry to continue on this topic, how do I set up the proxy for internet access, and local for updating.
Andrew
June 10, 2010 10:06 PM
User photo
RokuLyndon


The other proxy thread, sticky, had a script for setting the proxy server.
June 10, 2010 11:15 PM