Looking for a simple python solution for this:
Assume Machine A's local IP is 192.168.1.5 and public IP is 111.11.111.11, Machine B's local IP is 10.0.0.5 and public IP is 222.22.222.22, now I need to communicate between these two machines, how do you do that?
I've seen lots of socket programming examples with both server and client on the same network, but how do you connect machines behind different networks without changing router configurations(port forwarding etc.)?
EDIT:
What if Machine A's behind LAN: local IP 192.168.1.5, public IP 111.11.111.11; Machine B's an HTTP server with a public IP of 222.22.222.22; now you can easily reach B from A through HTTP requests, but what's the best solution to reach machine A from machine B?