2020年8月21日 · One workaround is to run a local proxy. Your protocol speaks to this proxy, and the proxy does both NAT traversal and relaying of your packets to the peer. This layer of indirection lets you benefit from NAT traversal without altering your original program. With prerequisites out of the way, let’s go through NAT traversal from first principles.