Home  >  Support  >  Support Forum  >  RCM6700 'TCP_to_Serial' Modify IP Address in Web Page
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

RCM6700 'TCP_to_Serial' Modify IP Address in Web Page

0 votes
Hello,
I am working with a RCM6700 development kit and I am using the sample code 'TCP_to_Serial.c'. My question is if it is possible for the user to change the ip address information from the browser.For example, the source code statically sets the IP address to 10.10.6.100/24 by default. Can the user change this without having to recompile the source code or must this be set during the compile? What I would really like is to have a set of input boxes above the serial port setup for the user to modify the IP address. Does anyone know if this is possible and if so could you point me towards an example of how to modify the source code?

Thank you,
asked Apr 2 in Rabbit Software by Mulepunch New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
There isn't a simple example that shows exactly what you want to do but there is a good example of managing and changing network addresses in the samples\tcpip\addp.c program.

You need to set TCPCONFIG to 6 and manually issue the ifconfig calls to set the network up the way you want it. This way, when the config is changed by the user you can update it to match. It is probably not a bad idea to implement some of the addp stuff in your system as it allows you alter the network config from a program on a PC.

Regards,
Peter
answered Apr 2 by petermcs Veteran of the Digi Community (468 points)
Contact a Digi expert and get started today! CONTACT US
...