1 year ago
#232714
suleman Ali kazmi
Send command to a device over internet by using its IP address
Currently I am working on a project in which I have to send commands to a device by calling its IP address. I have already created a code that send the command by using the IP address on LAN. Here is code snippets.
private void cmdConnectRobot_Click(object sender, EventArgs e)
{
try
{
// Create object and connect with VRC
caoCtrl = caoWs.AddController("Robot", "CaoProv.DENSO.RC8", "", "Server=192.168.0.100");
caoRobot = caoCtrl.AddRobot("VS", "");
// Valiable of status of Machine lock SW
//caoVal = caoCtrl.AddVariable("@LOCK","");
caoValP = caoCtrl.AddVariable("P1", "");
you can see the robot can be accessed using LAN by putting server IP address. I want to call this device by using this IP address but over the internet. Thank you!
c#
ip-address
robot
sendinput
wan
0 Answers
Your Answer