Some questions and suggestions to get started with troubleshooting:
A) Are you able to use Roon on your iMac without issue?
B) Ensure that you have disabled the macOS firewall in System Preferences > Security & Privacy.
C) Check that your Mac and iOS devices are on the same subnet. This means that the IP addresses for all of the devices have matching numbers for the first three decimal groups in the IP address.
You can check the IP adress of the Mac by going to System Preferences > Network.
You can check the IP address of your iOS devices by going to Settings > WiFi and then clicking the “i” button for the current network.