The most common I use is a cable from the headphone jack to the mic jack. May require some Y cable and volume control but it works everytime.

You can also check out the discussions on Audacity forums which I won't duplicate here.
Bob