in my case: from the menu
-virtual machine -> network adapter -> (nat is selected) -> network adapter settings -> check "connect network adapter "