Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Can you conect from custom C# app to roboDK on another computer?

#1
Hello, i am triying to conect my C# + .Net interface whit a robot simulated on another computer in roboDK. I dont know if these is possible. Can you do it? If it is possible, how do you do it? There is any tutorial, pdf or anything to learn how to do these?
#2
You can connect to the RoboDK API remotely from another computer in the same network. You simply need to enable the RoboDK API to be reachable from the outside:
  1. SelectTools-Options
  2. Select the tabOther
  3. Check the optionAllow external API
  4. Select "Allow" when you see a popup from Windows Firewall (immediately after you enable the external API).
These steps are only required on Windows as it requires administrator rights. On other devices (Ubuntu/Linux/Android/...), the RoboDK API server is already reachable from other computers in the network by default, so you don't need to follow these steps.

When you connect from another computer you should provide the IP of the computer that has RoboDK installed when you create theRobolinkobject, which is your connection to RoboDK.

This example should work on C# and should show a popup message on your remote PC:
Code:
Robolink RDK = new Robolink(ip="192.168.0.126");
RDK.ShowMessage("The remote connection works!");

In Python it would be:
Code:
RDK = Robolink (ip = " 192.168.0.126 ")
RDK.ShowMessage("The remote connection works!")




Users browsing this thread:
1 Guest(s)