Getting IP Address in code

How can I get the current IP address assigned to my FEZ Cobra from code?

Look at NetworkInterface.GetAllNetworkInterfaces method:

http://msdn.microsoft.com/en-us/library/ee433756.aspx

and then IPAddress property of the NetworkInterface instance:

Alright! Thank you, that was the missing part in my NetBIOS name service class. I can now give my Cobra a real network name!

network name…Sounds very interesting. Can you share some code to do that?

Maybe we can try it on smaller FEZes too

I’ll post it on fezzer when I get back from work.

Great! Thank you!

I am doing a little project for fun, automating my house, where the server is on FEZ. I do that from my phone’s web browser. I would love to be able to use a name instead of the IP address.