Refactor getId and add getIp

* extract getId api request to recLoadAll

* use recLoadAll from getIp and getId