What is the correct way communicate between arduino and pc wirelessly ?

I can't find any descent source for information about it.
I want my arduino to communicate with my pc by wifi (i have a router).

I have many (short) questions :

  1. What item should i buy for the arduino, I understand that the wifi shield is obsolete.
  2. where can i find a tutorial that will help me ?
  3. how the communication works, is it tcp ? or even http ? sockets ?

You could even use Bluetooth.

The question is about wifi, how to use wifi.

tautau123:
The question is about wifi, how to use wifi.

NO, that was not your question.

The original subject, let me refresh your memory, was What is the correct way communicate between arduino and pc wirelessly ?

Wirelessly is not exclusively wifi.

If that is your intent, then change your subject line!

If you want to communicate using WiFi you need either a WiFi shield or the much cheaper ESP8266 module.

Or you could use an Arduino Yun that has WiFi as standard.

...R