AnsweredAssumed Answered

Applications using a DHCP configured interface

Question asked by Tom Moulton on Sep 8, 2010
Latest reply on Feb 15, 2011 by Tom Moulton

If I have server applications running that are listening

 

// Start Server srvr = socket(PF_INET, SOCK_STREAM, 0); /* Bind the socket to the port */ any.sin_family      = AF_INET; any.sin_port        = 80; any.sin_addr.s_addr = INADDR_ANY; bind(srvr, &any, sizeof(any)); listen(srvr, 0);

 

Will this server continue to run properly if the interface is moved from one LAN to another and the IP address assigned by DHCP changes?

 

What is the right way to re-activate DHCP when the cable is re-interted?

 

tom

Outcomes