Say our IP address consists of a public and a private key, the public key is what servers send encrypted data to, and the computer decrypts the data with the private key. Would this theoretically work and would it be of any good use?
You are describing is <a href="https://www.wireguard.com/" rel="nofollow">https://www.wireguard.com/</a> which is a stable choice for this application.