add get current IP func