The methods using iCloud Keychain, QR codes, and Nearby Sharing do not require an active internet connection. However, if you choose the manual sharing method via email or messaging apps, you do need an internet connection.