getting myip method