Macbook loses network connection when connecting external display
This helped: https://www.youtube.com/watch?v=jObj6YnK44Q


ALU foil around the cable (up to the tip)
Bend the cable backwards (make it perpendicular to the screen)


and you're back online.