hopefully 2.1 is around the corner

When are you planning to add AutoIP?

We have been busy adding other more requested features and we didn’t get to it. Why not use DHCP?

DHCP requires a service. APIPA is serverless.

I think this has to be done at the firmware level unless the TinyCLR socket lib supports things like ETH_P_ARP at the C# level (haven’t investigated sending/receiving ARP packets myself).

I understand that. I am curious why this is the only time this has come up in over 10 years. I am always trying to learn and understand the end application and so I may ask too many questions :slight_smile:

1 Like

It would make it easier to configure a device that doesn’t have a UI. Once it has a valid IP it is much easier to find it on the network.
I guess it is possible to use a default IP like routers and wifi radios but then you usually have to fiddle with your PC IP settings to get it configured. Or in a worse case, as I have had, a Ubiquiti radio reset to default values. Its default IP address was the same as the PLC running the plant. Everything shut down until it could be figured out.

Which you can do with DHCP. What am I missing?

If you have a network of embedded devices then there is no DHCP server. (i.e. closed control networks, etc.)

Our devices can work in LAN without DHCP.
Or devices can be connected directly to the PC

Gus, if DHCP solved world hunger, why is APIPA even a thing?

Because there are many use cases, either device to device or secure/controlled environments where you will not get an IP address issued but you still need to communicate to other devices.

The previous post actually gave me a perfect example, 2 SITCore devices connected directly over ethernet can’t be done today (unless they are both static IP)… And we are going to fix that :grin:. AutoIP is getting investigated as of this morning.


AutoIP was just added and tested. Coming this week in preview2


I tested AutoIP today. It works incorrectly. Section 2.1 of RFC 3927 requires that the address be generated from a pseudo-random number generator initialized with a MAC address. Before assigning an address, you need to make sure that no one is using it. To do this, you need to send an ARP packet requesting “give me the MAC of”. If the MAC is found, then the ip address is already taken - generate a new random ip and repeat the ARP request.

Yes that is what we have. Please provide more info.

I connected my device to a PC. The IP address on the computer was and on the device (why ?)

Then I assigned a static IP address on the computer to Disconnected and reconnected the cable. On the device again, the ip address is !!!

What is the MAC address of your device?

WiFi or ethernet?

I use enc28. MAC from example MacAddress = new byte[] { 0x00, 0x4, 0x00, 0x00, 0x00, 0x00 }

Then I connected the device to LAN with DHCP. device again with ip address !!! After rebooting the device, it has a normal ip from the DHCP server

Can you please tell me why you think this is wrong?