Two peers behind nats need a server to coordinate/holepunch connections. This is pretty standard knowledge when building p2p stuff. What is this magic serverless tech you are using? Establishing p2p connections is a very hard problem with many nat variations to get around.