replace localhost with ip