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

RoboDK API IP Address

#1
How to choose the IP address RoboDK will use when running RoboDK headless?

We run RoboDK on a machine with multiple NICs and we cant figure out how RoboDK decides which IP address it will use to run its API service

There is the CLI option -PORT to force using a specific port. Is there something similar to force using a specific IP address? (In the GUI one can chose the IP address, but we don't have a GUI when running RoboDK headless)
#2
To allow the RoboDK API to work from an external IP you can follow these steps:
  1. Select Tools-Options
  2. Select the Other tab
  3. Check the option Allow external API (you may need to allow a Windows Firewall rule if you are on Windows)
The RoboDK API will be reachable through any IP used by the computer (he IP of the RoboDK server is set to 0.0.0.0).

You can also allow the RoboDK API to be reachable from another computer using this command line option:
Code:
-AllowExternalAPI=1
For example, to customize the RoboDK API to be reachable from another PC at a certain port you can run RoboDK with these commands:
Code:
RoboDK.exe -PORT=20502 -AllowExternalAPI=1
#3
Thank you for the answer
As mentioned before we know how to force a specific port we know how to do it in the GUI.

But we would like to do it in a headless setup.

On our machine we have 3 NICs
RoboDK picks one of them (actually not the one we would like it does)

In our case it shows something like that:

Sep 10 15:24:54 nbiammp RoboDK[563596]: Starting RoboDK API Server
Sep 10 15:24:54 nbiammp RoboDK[563596]: Available local IP addresses (IPv4)
Sep 10 15:24:54 nbiammp RoboDK[563596]: Message skipped (NOUI):  "Server is running at 192.168.0.100:20500"
Sep 10 15:24:54 nbiammp RoboDK[563596]: RoboDK API status:  Server is running at 192.168.0.100:20500

The address 192.168.0.100 is not the one we would like to use

According your answer, it seems RoboDK would be reachable from any other valid IP of the machine too? Not only  192.168.0.100 ? For example  192.168.100.100 if that is another IP of another NIC of our machine?
#4
You can set RoboDK IP manually to be 0.0.0.0 so you can reach the RoboDK API from anywhere:
  1. Select Tools-Options
  2. Select the Other tab
  3. Click on API server IP
  4. Enter this IP manually: 0.0.0.0
You should then close RoboDK (settings are saved atomatically) and when you start RoboDK next time it will use these settings.
  




Users browsing this thread:
1 Guest(s)