If your laptop is having trouble connecting to Wi-Fi or the wired network when docked, a quick fix is to reset the network settings and then reboot. You’ll have to reauthenticate to Wi-Fi once rebooted. The issue can happen when going between wireless access points and docking/undocking.