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.

Ip Address Netduino 3 Ethernet

nework ipaddress

  • Please log in to reply
4 replies to this topic

#1 claudio.serio



  • Members
  • PipPip
  • 25 posts

Posted 17 October 2015 - 09:01 AM

Hi everyone,


Can someone explain me how set a static Ip address by code on Netduino 3 Eternet ?


Thank you

#2 claudio.serio



  • Members
  • PipPip
  • 25 posts

Posted 19 October 2015 - 10:19 AM

Anyone whit the same problem ??

#3 David Weaver

David Weaver

    Advanced Member

  • Members
  • PipPipPip
  • 50 posts
  • LocationBloomington IL

Posted 22 October 2015 - 09:26 PM

This works in N2+ using vb

Imports Microsoft.SPOT.Net.NetworkInformation

Dim interf = Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()(0)
        interf.EnableStaticIP(StaticIPAddress, SubnetMask, GateWay)
        interf.EnableStaticDns(New String() {GateWay, GateWay})
Hope this helps

#4 darkSol



  • Members
  • PipPip
  • 13 posts

Posted 28 December 2015 - 10:15 PM

Has this been resolved yet?


I have a SmartThings integration project I need to get started and would love to use a Netduino3 Ethernet as a base - but it needs a static IP.


Please advise - thanks!



#5 TechnoGuy


    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • LocationCanada

Posted 29 December 2015 - 01:57 AM

The original poster of this question started several threads about it.


Please see this other thread for details.


He wanted specifically to be able to set a static IP address at run time.  If you don't need to do that (i.e. you're okay with setting it beforehand) you can just do so using the MFDeploy tool.

- Ian


My Current Dev Boards:

  • 3 x Netduino Plus 2
  • 1 x Netduino 3 WiFi

Also tagged with one or more of these keywords: nework, ipaddress

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.