NetBIOS Name Service class

I realize this is an old thread, but wanted to add that I’m using Nameservice with 4.3 on my Fez Raptor. I’m able to ping and browse by name.

I had to modify the constructor slightly so that it would bind to the correct Ethernet port; it was defaulting to built-in, but I use the ENC28.

	
public NameService()
		{
			foreach (NetworkInterface networkInterface in NetworkInterface.GetAllNetworkInterfaces())
			{
				if (networkInterface.IPAddress != "0.0.0.0")
				{
					localIP = IPAddress.Parse(networkInterface.IPAddress).GetAddressBytes();
					localMacAddress = networkInterface.PhysicalAddress;
					break;
				}
			}
<snip>

1 Like