Main Site Documentation

Getting IP Address in code


#1

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


#2

Look at NetworkInterface.GetAllNetworkInterfaces method:

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

and then IPAddress property of the NetworkInterface instance:

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


#3

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


#4

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

Maybe we can try it on smaller FEZes too


#5

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


#6

Great! Thank you!


#7

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.