Getting a Fixed / Static IP Address for ESP8266

You can TRY this

I've tried with varying degrees of success

However as Perry says, by far the best way is to assign a fixed IP addresss in your router