0

Changing IP address along with the project file



Hi, I have a customer who asks us if it would be possible to alter the project files in order to assign certain IP address to the unit. I mean: What they would like to achieve is that in case of having a faulty unit, they would have just to take the SD card out of the faulty unit and insert it into a new unit, so this new unit would take the same IP address of the faulty one. This way, the final customer wouldn't have to worry about any IP address of the unit with problems and easily they could sort the problem/failure out while the unit is to be repaired. Would it be possible to do this? Thanks in advance. Miguel Chica. IberCOMM-TEC

1 comment

  • 0
    Avatar
    RokuLyndon


    You could enter this manual ip configuration in the autorun.brs script on the flash card.  You would insert the code into the sub main function.


    REM Adjust network settings here if necessary
    nc = CreateObject("roNetworkConfiguration", 0)
    nc.SetIP4Address("192.168.2.2")
    nc.SetIP4Netmask("255.255.255.0")
    nc.SetIP4Broadcast("192.168.2.255")
    nc.SetIP4Gateway("192.168.2.1")
    nc.AddDNSServer("192.168.2.1")
    nc.AddDNSServer("8.8.4.4")
    'nc.SetDomain("mshome.comcast.net") 'set whatever your domain is
    rem nc.SetTimeServer("") 'Set Time server here, add address inside quotes
    ok=nc.Apply()

Please sign in to leave a comment.