I am a networking newbie... I have a (stupid? :) ) question regarding UDP communication.
I created two simple programs based on the boost::asio library: a server and a client. These two programs communicate via UDP sockets. Client connects to a server and starts transmitting the datagrams.
It works very well in my LAN. I use IP address to connect with the server (eg. 192.168.1.111).
What if my server application works in other LAN, and client have to connect via internet? How do I reach the server?
Only possible solutions I know are:
- port forwarding (insecure?)
- VPN (over-complicated)
Are there better solutions?
How is that possible that some applications (like Skype or LogMeIn...) works without VPN/port forwoarding, and user in one LAN can reach any computer in other LAN?