fix ip getter