Socket Programming with Virtual Controller

I would like to use socket messaging to communicate from an application running on a PC connected to my LAN to my robot program running on the virtual controller (running on the same PC or a different PC also connected to my LAN).


1) How do I get the Virtual Controller's IP Address so I can bind a socket to it?


2) How do I connect the Virtual Controller to my LAN?