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[] = "192.168.0.65"; //ENTER LOCAL IP ADDRESS

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

int status = WL_IDLE_STATUS;
WiFiSSLClient client;

void setup() {
  Serial.begin(9600);
 
  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) {
    Serial.println(SSID_NAME);
    status = WiFi.begin(SSID_NAME, SSID_PASS);
    delay(10000);
  }
  Serial.println("Connected to wifi");
  printWiFiStatus();
}

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

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

void Sending_To_phpmyadmindatabase()  {
  if (client.connectSSL(server, 80)) {    
    Serial.println("connected");    
  } 
  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.