How can I use Sockets to communicate between the Vex Cortex microcontroller and a laptop?

That’s what the VEXNet key is for, it’s a transmitter