PCSDK connect to remote controller

Hi,

I try to connect to different address from 127.0.0.1

I do something like:

AddressIp = “10.95.176.75”;

NetworkScanner networkScanner = new NetworkScanner();

System.Net.IPAddress ip = System.Net.IPAddress.Parse(AddressIp);

NetworkScanner.AddRemoteController(ip);

networkScanner.Scan();

ControllerInfoCollection controllers = networkScanner.Controllers;

I have a working simulator at : 10.95.176.75

That dose not work, I get only one controller in controllers IPAddress = 127.0.0.1

Someone know how to do it ?

one more question, is there a definition when i need to perform AddRemoteController ?

if my application run at 10.95.176.94 do i need to it ?

Thanks

Avi

Hi avicohen,

Virtual Controllers does not broadcast themselves on the LAN so they can’t be found using NetScan. So the only way to ‘talk’ to a VC is on the same PC.

AddRemoteController is used when the controller you want is on a different subnet than the PC SDK application. Subnets are defined by the subnet mask on your PC LAN.
http://en.wikipedia.org/wiki/Subnetwork

Thanks John,If i understand you correctly i can not run my application (the one that use PC SDK) in one PC and the simulator in another PC ?