How do I connect to a terminal server from outside?

Windows
Mac OS X