Replace ip by localhost