replace localhost with ip address