When I open my Mac Book from sleep, and it's attached to my external HD for Time Machine, I get a local host error. Something about the local host name has to be changed. What is this all about?

Sometimes when I take my Mac Book off charge to use on the wireless network, I eject the HD. But, this doesn't happen than, only when attached to the battery charger and in sleep.

Help Please!