I want to make simple client-server program where arduino behave as a client. For example I have a LED connected in arduino board that is controlled by a switch. With the switch I can turn off and on the LED. Now I want to send the status of that LED to another computer wirelessly (let's say within the Local network). That computer will act as a server and update the change as soon as the LED changes its status. The server should be able to communicate with the arduino also. For this communication, I want to avoid using Wi-Fi sheild (that is, arduino will send data while its connected with a computer).
I am not expecting any complete code, I just want to know how could it be done in better way? May be some links can help me? Because this is my first time working with client-server in arduino sketch, I need some kind of guidelines. Thank you.