How do I connect to my local computer from any computer in the world?

This question came to me out of curiosity, since I had been working for years [...]