Replacing localhost with IP