Revert "changed ip util"

This reverts commit b9e7d861f5e22277dd7c166ccd9db93fc58ff517.