VMWare Workstation "Server Connection Timed Out"

I’m trying to join a Garry’s Mod server on my VMWare Workstation and it “Server Connection Timed Out”. I assume it is some setting in VMWare that I need to change. I am unable to find a solution on google so I hope that someone else has had this issue and knows how to resolve it.

I’m using the newest version of VMWare Workstation.

I’m pretty sure Virtual Machines aren’t meant to run games.

Why do you need to use VMWare anyway?

They are able to, I know people that do this but haven’t had this error.

And so I can play Garry’s Mod on two different accounts on the same computer. I don’t have an other computer/laptop so.