Main Site Documentation

Setting up network


#1

Are there any way to set network parameters from code instead of using external app MFDeploy?


#2

Yes. Check documentation for example.


#3

Thanks for the answer. Before asking I’ve been searching and I’ve not found anything? Can you tell me where can I find this info?

Thanks!!


#4

Only thing I’ve found is how to see values:

public static void Main()
{
	NetworkInterface[] netif = NetworkInterface.GetAllNetworkInterfaces();

	Debug.Print("Network settings:");
	Debug.Print("IP Address: " + netif[0].IPAddress);
	Debug.Print("Subnet Mask: " + netif[0].SubnetMask);
	Debug.Print("Default Getway: " + netif[0].GatewayAddress);
	Debug.Print("DNS Server: " + netif[0].DnsAddresses[0]);

}

I’ve tried to set one of this values but the’re read-only…


#5

Check this link http://msdn.microsoft.com/en-us/library/microsoft.spot.net.networkinformation.networkinterface.enablestaticip.aspx


#6

Hi,
Is there a way to set up a hostname for GHI devices ?


#7

Check this: http://tinyclr.com/forum/10/2472/