Thank you, but I really want to handle all cases, example like hardware reset.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 a simple IP config before reset, and run it afterward.