I've had this need recently and noticed that tailscale is extremely useful between phone to mac transfers as well. I mean you can also technically use airdrop too, but that sometimes is unreliable for me.