How can I do these steps in android (Eclipse)? In a simple example. I am beginner. For transfer data over wi-fi.
- Server device opens a socket and listens on it.
- Server device broadcasts the local IP and Port it's listening on.
- Client devices receive broadcast and initiate a connection.
- Transfer data between server and each client or clients and server.
This is very broad and would require a lot of code to show, and therefore I recommend viewing
http://developer.android.com/guide/topics/connectivity/wifip2p.html