I would like to connect the target pc.Below is the code for the same.But I got the below Error.But the IP Id for the target pc is right.If any one knows regarding this,Please help me.Thanks in advance.
[ ] *** Error: Unable to connect to machine '18.104.22.168' -- The network has not been enabled
[ ] HMACHINE target_machine // target computer
[ ] HMACHINE host_machine // host computer
[ ] STRING sTarget = "22.214.171.124" // target's network name
[ ] STRING sHost = "126.96.36.199" // host's network name
[ ] // save host’s handle
[ ] host_machine = GetMachine ()
[ ] // save target's handle
[ ] target_machine = Connect (sTarget)
[ ] // what is currently active on the target machine?
[ ] Print ("Active window on Target: ", Desktop.GetActive ())
[ ] // switch to host machine
[ ] SetMachine (host_machine)
[ ] // what is currently active on host machine?
[ ] Print ("Active window on Host: ", Desktop.GetActive ())
[ ] Disconnect (target_machine) // disconnect from target