Fixed API client ip (issue #3063)