Connect to Mikrotik Router via MAC address

I’m writing a C# Winforms application base on tik4net API.
My trouble is whenever I reset the router, the IP address will become “0.0.0.0”.
so i have to connected by MAC Telnet, but tik4net API doesn’t support MAC telnet.
any suggestion for me, thanks you so much.

There is an option to run a specified script (that is stored on flash) after reset.
I guess, you can make your application create a script with simple ip config before reset, and run it afterwards.

Thank you, but I really want to handle all cases, example like hardware reset.

If you perform a hardware reset, the router will end up with default config, not the blank one.

Oh, now I know that, thank you. But what I really wanna do is connect by MAC address like Winbox.