ESP01 connections client <-> server

Hello,

I have 2 ESP01 trying to communicate :

ESP1 is access point and must send info to the station
ESP2 is a station which connect to the access point

I managed to have ESP1 as server receiving from ESP2 but now I’m trying the other way.

I have simplified the code but this is not working :

Code ESP1

#include <ESP8266WiFi.h>

// Wifi Configuration
const char* ssidAP = "ESPsoftAP_01";
const char* passwordAP = "password2020";

const char* station = "192.168.1.5";

// AP Configuration
IPAddress ip(192,168,1,10);   
IPAddress gateway(192,168,1,254);   
IPAddress subnet(255,255,255,0);
 
// Set web server port number to 80
WiFiServer server(80);

void setup()
{
  Serial.begin(115200);
  Serial.println();
  WiFi.config(ip, gateway, subnet);
  WiFi.mode(WIFI_AP_STA);
  Serial.print("Starting AP ... ");
  boolean result = WiFi.softAP(ssidAP, passwordAP);
  if(result == true)
  {
    Serial.println("Ready !");
    Serial.println(WiFi.localIP());
    server.begin(); 
  }
  else
  {
    Serial.println("Failed!");
  }
}

void loop()
{

  //client = server.available();   // Listen for incoming clients
  WiFiClient client;
  if (client.connect(station, 80))
       {
         Serial.println("[CONNECTED TO STATION]");
       }
       else
       {
         Serial.println("[FAILED CONNECT TO STATION]");
}

Result :
17:40:40.326 → Starting AP … Ready !
17:40:40.326 → 192.168.1.10
17:40:40.326 → [FAILED CONNECT TO STATION]

Code ESP2 :

#include <ESP8266WiFi.h>

const char* ssid = "ESPsoftAP_01";
const char* password = "password2020";
const char* host = "192.168.1.10";

IPAddress ip(192, 168, 1, 5); //ESP static ip
IPAddress gateway(192, 168, 1, 254); //IP Address of your WiFi Router (Gateway)
IPAddress subnet(255, 255, 255, 0);  //Subnet mask

WiFiServer server(80);


void setup()
{
// Serial is Arduino  
  Serial.begin(9600);
  
// Connect to AP  
  WiFi.config(ip, subnet, gateway);
  WiFi.begin(ssid, password);
  WiFi.mode(WIFI_STA);
  Serial.println("[ESP CONNECTING TO AP]");
  while (WiFi.status() != WL_CONNECTED)
  {
    delay(500);
    Serial.print(".");
     
  }
  server.begin();
  Serial.println("[ESP CONNECTED TO AP & SERVER STARTED]");
}

void loop()
{
  //WiFiClient client;
  WiFiClient client = server.available();
// Listening to connection from Server
  if (client.connected()) 
  {                             // If a new client connects,
    Serial.println("[NEW CLIENT ON ESP]"); 
  }
}

Result :
…[ESP CONNECTED TO AP & SERVER STARTED]

What do I do wrong ?