Napster servers keep an index of all the songs every user has on the service. When you do a search, it searches your server for the song that you want. Then when you download, that server also has a field that would link the song title to an IP address of another use who you would download it from.