I'm programming a fat client in Java that permits sending files. So from LAN 1 with public IP (so called pip1), a first fat client (fc1) with local IP (lip1) sends a file to a second fat client (fc2) on LAN 2 (pip2) via WAN. I use the protocol TCP/IP on port 8081. So it is working only if I port-forward the port 8081 for lip1 on LAN1's router and with the port 8081 for lip2 on LAN2's router...
It is awful: I guess you have understood I'm not good with network stuff. :s What is your suggestion? I use java.net.ServerSocket