fixed ip to use 127.0.0.1 if non is found