i understand what they are (VPNs) but i'm confused if the secure tunnel is used just to access the files on the remote computer or if you use the internet connection of the remote computer. like for example, say the wifi connection you are on is not secure, you vpn to your box at home and use that internet connection.

which is it? or is it both? any thing i'm missing?

thanks for any help