Hey guys,
I'm currently looking over my webserver code and have the following question:
I never used DHCP, always fixed IP.
What would be the right code to receive a IP via DHCP from my router. Is the following code correct (DhcpEnable ist just a bool I set)
if ( DhcpEnable ) { //Dynamic IP interf.EnableDhcp( ); interf.RenewDhcpLease( ); } else { //Static IP interf.EnableStaticIP(ipAddress, subnetMask, gatewayAddress); }
Greets, Markus