Best Answer herbsti72, 04 March 2015 - 01:24 PM
HI Terrence,
you need to reference "Microsoft.SPOT.Net" Assembly, afterwards try following code to get IP with DHCP:
var interf = NetworkInterface.GetAllNetworkInterfaces()[0]; //Get Dynamic IP interf.EnableDhcp(); interf.RenewDhcpLease();
For more information take a look on this project:
http://neonmikawebserver.codeplex.com/
It contains also other usefully network related code and how to setup simple webserver on N2+
Go to the full post