I think this is how iroh works. They have "relays" which are servers that help establish a connection between 2 clients if necessary.
https://www.iroh.computer/docs/concepts/relay