Take $ip param instead of relying on $Env:ip