How do I communicate between 2 Python programs using sockets that are on separate NATs?

Viewed 672

I want to send and receive messages between two Python programs using sockets. I can do this using the private IPs when the computers are connected to the same router, but how do I do it when there are 2 NATs separating them?

Thanks (my first SO question)

3 Answers
Related