Online method is not possible since banks and other providers insist on providing Aadhaar number and completing OTP authentication for that mode. Aadhaar is a number given for residents, i.e., anyone who has legally resides in the country for more than 182 days. So a foreigner landing in the country isn’t going to be eligible for it until six months have passed.