This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HTTP Server fails after setting IP

Hello,

I'm using the RL_TCPnet without RTOS in conjunction with an ARM7TDMI (LPC2368). Everything is working fine until I set a new IP-Adress. In this case there is no responce from the integrated HTTP-Server. All the other parts of TCPNet working fine (like UDP or sending a ping from the DOS prompt).
I makes no difference where i set the IP - during the first initialisation (reading from flash) or using the web (HTTP_demo).
The only way to get in contact with the HTTP-Server is to set the IP-Adress using "Net_Config" and make no IP-changes while program is still runing.

I have also the same problem with the original HTTP_Demo! If I set a new IP the HTTP-Server fail but all other parts of TCPnet (UDP; PING) accept the new settings!

I try a lot of different things (different browsers - settings - other code examples) allways with the same result!

My code for init ("temp[]" = array with settings from flash)

 init_TcpNet();
..
 for(x=0;x<4;x++)LocM.IpAdr[x] = temp[x];
 for(x=0;x<4;x++)LocM.NetMask[x] = temp[x+4];
 for(x=0;x<4;x++)LocM.DefGW[x] = temp[x+8];
 for(x=0;x<4;x++)LocM.PriDNS[x] = temp[x+12];
 for(x=0;x<4;x++)LocM.SecDNS[x] = temp[x+16];

Any ideas,
Kay