Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

martinarcher

Member Since 04 Mar 2012
Offline Last Active Oct 26 2017 01:53 AM
-----

Topics I've Started

Netduino 3 Ethernet Static IP Issues

01 May 2016 - 11:39 PM

Has anyone found a solution to setting static IP's with the N3Enet?  I've now transitioned to Netduino 3's (I should say am trying to transition) but am struggling with this.  My Netduino 2 Plus I could set a static IP using .NET MF4.2 and the following line of code...

 

Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()[0].EnableStaticIP(ipAddress,subnetMask,gateway);

 

Now with my new N3Enet and .NET MF4.3 I get....

 

A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
 
Any help would be really appreciated.  I need to get this working quickly (or find more Netduino Plus 2's!)

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.