iTunes' music sharing disconnects when Macbook sleeps My Macbook Pro, OSX El Capitan 10.11.1, disconnects from my Windows PC's shared iTunes library whenever it (my Macbook) sleeps.
To reconnect it I have to restart music sharing from the Windows machine.
This is a pain, and I'd like to stay connected all the time.

For those who enjoy reading...
I've turned on music sharing with iTunes on my Windows PC by following these steps:

opening preferences (Edit &gt; Preferences)
Going to the sharing section
Checking the box &quot;Share my library on my local network&quot;
Checking the box &quot;Home Sharing computers and devices update play counts&quot;

which I got from here. At the end of the process I follow, my preferences screen looks identical to the one shown in the article.
Then, when I open iTunes on my Macbook Pro Retina, 15&quot;, OSX El Capitan 10.11.1,

I can see my Windows Computer's iTunes library and access it and play songs from it.
However, when my macbook falls asleep, it seems to somehow disconnect from the Windows machine, and I can no longer access the remote library.
I have to restart music sharing from my Windows machine in order for my macbook to reconnect.
How can I keep my Macbook connected?
Try the following. On your Mac, click System Preferences > Security&amp;Privacy > Firewall > Advanced > Deselect Log out after xx minutes of activity. This will stop iTunes switching off even though your Mac is in sleep mode. If the number of minutes in the prior selection equals the time at which the connection is lost, this is probably your problem.