Is there a way to scrobble to last.fm what I play from my iPhone with home sharing?

Edit: last.fm currently scrobbles when I play right from my iTunes. I am using the last.fm mac app. When I stream music from my iTunes library on my mac with my iPhone, using home sharing, last.fm does not scrobble.