title: Send data from ESP32 to a server via WiFi
body: <p>I am not new here but this is my first question.
  I have searched a lot and quite frankly can't understand how this is supposed to work.
  I get data periodically (temperature) to my ESP32 and while having it set as a WiFi client, connect to my router and somehow store this data on my Laptop(or somewhere else, like a local/web site, don't know if that's possible/better).
  How is the connection supposed to work? I have installed XAMPP and run the Apache and MySQL servers and I tried to connect to my Laptop with some sketches from Arduino using the ESP32 libraries</p>
  
  <pre><code>    // Use WiFiClient class to create TCP connections
  WiFiClient client;
  const int httpPort = 80;
  const char* host = "192.168.1.109";     //The local IP of my Laptop
  if (!client.connect(host, httpPort)) {
      Serial.println("connection failed");
      return;
  }
  </code></pre>
  
  <p>but it doesn't connect.
  Can someone please explain to me how this connection is supposed to take form or is this question too vague? I really just wanna know the "how-things-should-work-together" in this situation.
  Thank you in advance.</p>