save last ip to settings