iTunes' music sharing disconnects when Macbook sleeps
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.