Fix remote ip issue.