Added comment for getIP function declaration

Review: https://reviews.apache.org/r/28788