Update ip address in MainActivity