Remote Connectivity between Windows and Mac machine

I am trying to trigger execution to a device connected in Mac machine.I am getting the following error:
Exception in thread “main” org.openqa.selenium.WebDriverException: Unable to parse remote response: Parameters were incorrect. We wanted {“required”:[“desiredCapabilities”],“optional”:[“requiredCapabilities”,“sessionId”,“id”]} and you sent [“desiredCapabilities”,“requiredCapabilities”,“capabilities”]

I just want to know, I am missing out something or it is not possible to have remote connectivity between Windows and MAC OS