I used a program called Hamachi , which is a bit like peer-to-peer vpn (virtual-to-network). Then I wrote client server applications as is. It was a quick way to get connectivity over the Internet without the hype required to work with NAT routers.
"", udp. -, , . , A, B . A, B, . , , .