fix ip for logging