Moderator: igrr
in PASV command change
dataIp = WiFi.localIP();
to
if (WiFi.getMode() == WIFI_AP) //enum WiFiMode { WIFI_OFF = 0, WIFI_STA = 1, WIFI_AP = 2, WIFI_AP_STA = 3 };
{
dataIp = WiFi.softAPIP();
}
if (WiFi.getMode() == WIFI_STA) //enum WiFiMode { WIFI_OFF = 0, WIFI_STA = 1, WIFI_AP = 2, WIFI_AP_STA = 3 };
{
dataIp = WiFi.localIP();
}
if (WiFi.getMode() == WIFI_AP_STA) //enum WiFiMode { WIFI_OFF = 0, WIFI_STA = 1, WIFI_AP = 2, WIFI_AP_STA = 3 };
{
dataIp = WiFi.softAPIP();
}
some client use this ipaddress
Thank You
dataIp = client.localIP(); /// <<< use the clients local IP()