Cocos2d-x Wi-FI peer to peer

hey, can you point me to rigth direction.

I want to create IOS app as server and connect to it from other IOS/Android apps(clients) thru same wi-fi network. I want to send from client side to server some info, like to use iphone as external controller for server.

Where to start from? Should I check for socekt.io server on IOS devices or something different?

Check the class GKSession and GKSessionDelegate class in GameKit.framework. You will find all the functions for client-server connection over wifi.

You have to write your own bridge class to work it with cocos2d-x.