add utils for get ip