Remote Monitoring of Ventilator – WIFI client Problems

Hi everyone,
I am trying to send data from an Arduino to a database over WiFi.
The following tutorial managed to send the data to a database via an ethernet cable:

My issue is that I cannot connect to the server using the local IP address of my MacBook (7 lines from the bottom - "if (client.connectSSL(server, 80)) { "). I have also tried using client.connect() as well as client.connectSSL() and neither has worked.

I am able to insert data into the database by entering “http://localhost:8080/testcode/dht.php?humidity=70&temperature=30” into my browser so my port seems to be correct.

 #include <SPI.h>
#include <WiFiNINA.h>
#include <avr/dtostrf.h>

char server[] = ""; //ENTER LOCAL IP ADDRESS

char const * SSID_NAME = "SKY5D76A"; 
char const * SSID_PASS = "XXX";

int status = WL_IDLE_STATUS;
WiFiSSLClient client;

void setup() {
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  // check for the WiFi module:
  if (WiFi.status() == WL_NO_MODULE) {
    Serial.println("Communication with WiFi module failed!");
    while (true);
  // attempt to connect to WiFi network:
  while (status != WL_CONNECTED) {
    status = WiFi.begin(SSID_NAME, SSID_PASS);
  Serial.println("Connected to wifi");

void printWiFiStatus() {
  Serial.print("SSID: ");
  IPAddress ip = WiFi.localIP();
  Serial.print("IP Address: ");

void loop(){
  Serial.print("location1 \n");
  Serial.print("location2 \n");  
  delay(3000); // interval

void Sending_To_phpmyadmindatabase()  {
  if (client.connectSSL(server, 80)) {    
  else {
    Serial.println("connection failed");

The code for the original script can be found in the description on the YouTube video.

Thanks a lot in advance

You used port 8080 in your browser, but your code is using 80. Which is it?

Also, I don't expect your web server expects https on port 80.