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.
Photo

How to determine the IP address assigned by DHCP

ip address dhcp tool

  • Please log in to reply
2 replies to this topic

#1 clefranc

clefranc

    Member

  • Members
  • PipPip
  • 16 posts

Posted 08 August 2015 - 01:00 AM

Hi,

Is there a tool (using USB) to show the current IP address assigned by DHCP?

 

Thank you!



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 August 2015 - 06:38 AM

Hi clefranc,

The NETMF debug tools don't expose your board's IP address through any GUIs, Visual Studio, etc. But...

If you use Debug.Print to output the current IP address, you can display it in MFDeploy's "debug output" feed.
 
Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()[0].IPAddress
Does that get you the info you need?

Chris

#3 clefranc

clefranc

    Member

  • Members
  • PipPip
  • 16 posts

Posted 14 August 2015 - 08:55 PM

Does that get you the info you need?


Yes, pretty much what I'm doing right now. Just hate to reboot the netduino for getting it's IP.

 

Thanks

Christian







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.