Netduino home hardware projects downloads community

Jump to content

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


Member Since 08 Oct 2013
Offline Last Active Oct 04 2016 11:22 AM

Posts I've Made

In Topic: Introducing Netduino 3 Ethernet

05 February 2016 - 07:39 PM

Hi Chris,


I recently purchased a Netduino 3 Ethernet running the latest MF 4.3 firmware update.


In the past I've been setting the static IP address for my Netduino Plus 2 using .NET MF 4.2 as listed below:


public static void Main()
            //Set the Neduino Plus 2 Static IP
            NetworkInterface.GetAllNetworkInterfaces()[0].EnableStaticIP("", "", "");
            string localip = NetworkInterface.GetAllNetworkInterfaces()[0].IPAddress;
            Debug.Print("The local IP address of your Netduino Plus 2 is " + localip);
            // Create and initialize the program instance
            Program Initiate = new Program();
            //Thread.Sleep is necessary to keep the program running
I created a test program for my Netduino 3 Ethernet with the same NetworkInterface information.
When I deploy and debug the application I get the error "An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll" at the line of code NetworkInterface.GetAllNetworkInterfaces()[0].EnableStaticIP("", "", "");
I've referenced SecretLabs.NETMF.Hardware.Netduino for the device. Static IP is also enabled with MFDeploy.
Is there another networking related reference I need to add to my application and possibly a different method for setting a static IP than above?

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.