Wifi remote control between single or 2 unity applications

Hey guys! So, I have this awesome idea for an app to co-work with a Unity3D project, nothing too heavy, literally just some key presses. I have no idea how to go about this…I know that you need a server/client running on windows (unless there is a way to directly hook up to Unity3D which would be great!) but the overall end goal is to press a button on the android app and it sends the keypress combination over wifi to windows, in doing so would trigger the associated in game key combination.
I know I can build an Unity APK which is fine, I can do that…but is there a way so say…send the key combinations from the Unity APK app to a seperate and completely different Unity application on windows? through WIFI?

Anyone got any ideas?

Thanks a million if anyone can help i am really struggling with this and have no where else to look.

Sure, select your favorite transport fabric (TCP/IP, UDP, bluetooth, whatever), establish a connection between the two running pieces of software, and send your control data over.

thanks for the reply. I would choose TCP/IP for sure, thing is i have no clue about networking in unity, i wouldn’t even know where to start with code or anything. Unfortunately I only know the basics like transforms, triggers, etc.

There’s a plugin in the Unity Asset Store that is designed to let you use phones like controllers for a game running on another device. I haven’t used it personally, but a colleague of mine said it was pretty easy to use.

that actually looks very promising, i’ll have a play around with it. Thanks!!! :smile:

If you were going to develop this yourself, take a look at the below thread on various network API’s available in Unity. Pick one which sounds reasonable for your use case, then give it a try. With networking expect to invest a good amount of time into getting the hang of it, and you’ll generally multiply the total development time of your project to increase significantly due to the complexity of networking.