Unable to retrieve Core IP through Roon Command Line (ref#W77S5Q)

Hi! What’s not quite right with Roon?

· None of the above quite fits

None of the above quite fits

· None of these quite match

Tell us what's going on

· Roon Command Line: get_core_ip

Tell us about your home network

· irrelevant

When I use get_core_ip, I have to allow execution in Roon. This makes it impossible to use this function in a script. Is there a way to get around this?

Hello @Werner_Hintze ,

I would recommend you to put a fixed IP address to your roon server and just feed it to your script instead of having to run a discovery process.

Let us know how this works for you.

If not we’ll mind together about other options.

Have a nice day!

Regards.

Thanks for the quick reply! That definitely works. The problem, however, is that I have two (soon probably three) locations where a Roon server is running. And I don’t want to write a separate script for each location, nor do I want to set the same IP address for the server in all locations. Therefore, the best and most general solution would be for the script to determine the address so that I know which one to use for the SSH connection.
I hope I have expressed myself clearly enough… :wink:
Is it possible to do this somehow?

Hello @Werner_Hintze ,

Okay, that is clear.

In a difference from IP your Nucleus also has MAC address which is permanent and not willing to change in different networks.

Just do a fetch of “arp -a” terminal command output in any network with your Nucleus and find the ip using MAC address as a key.

How do you like this approach ?

Regards.

I must admit that I don’t like this at all. Why should I travel via Rome if I want to go from Berlin to Potsdam? In other words: Why is this function implemented in such a way that it cannot be used in a script?

Whilst I understand what you’re trying to achieve, I don’t understand why you wouldn’t follow @alex_h advice and set fixed IP’s for your Roon servers.

Assuming you are not running Roon Rock, and are actually running Roon Server, on which OS?

Hello @Werner_Hintze ,

If you are reffering to the usage of this tool - Contents | RoonCommand, Unfortunately we might not advise much on it because Roon is not a developer of this tool. It is better to contact a developer of it.

For our part, we tried to offer you the best option that would meet your needs and that we could come up with.

Regards.

I want to use the same script on different servers. And I don’t want to assign the same IP address to each one. My question is rather: if there is a function for the command line that allows you to query the IP address of the server, why is it implemented in such a way that you cannot use it in a script? This seems illogical to me. At the very least, I would expect there to be a way to bypass activation via the Roon interface.
I have the server on macOS and Ubuntu. I don’t yet know which system I will choose for the third (if that becomes necessary).

Hello @Werner_Hintze ,

Okay, I understand your request.

However, the tool you are questioning is not developer by Roon and we do not maintain it.

If you want to retrieve the ip address of Roon Server in local network you can also try to analyze multicast traffic via WireShark or similar tool, see what Roon Remote app sends to broadcast to find server and connect , and with this data ask chatGPT to help you to build your own script. I saw some enthusiasts successfully implement this, however since this is unofficial solution I may not advise on how to deal with it or recommend to use it.

Unfortunately, Roon does not officially provide CLI for this purpose.

If you have any other questions please contact the developer of the tool you are trying to use.

Have a nice day!

Regards.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.