Connect Replit server to local device

I want to be able to connect a Replit server to my personal device, as though they were both on the same wifi network. Is there any way to do this? I’m guessing this could be done with a VPN, but how?

This could be done using ZeroTier or Wireguard.

I believe I have tried and failed to get ZeroTier working, how would I do the Replit part?