How can I have a persistent TCP connection to another remote host, even when IP address changes?
Say I create a program to connect to an IP address. After a while (PC restart, etc) the IP address changes and my program wont connect to the target PC anymore.
There exists something called DNS where you can type a domain and you will get back a valid IP address. For that I hear you need to host a server and pay for that.
Skype for example is P2P. How does that work?
Is there a way to programmatically make a server that someone (who is NOT in my local lan) can always connect to, even if my IP address changes?