How to connect remote retropad

I’m new to RetroArch and I don’t seem to be able to get the remote retropad (android) to work. I assume the RRP is to allow control of a game playing on another device (in my case another android and lakka on Rpi). Am I correct in this assumption? If so could someone please help me figure out how to connect to the other device? If not could someone please explain its’ use to me? I have been trawling through google and libretro all night trying to find a solution to this issue.

Any help would be greatly appreciated.