diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_webclient.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_webclient.ino index 0971c098b..198103fd3 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_webclient.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_webclient.ino @@ -194,7 +194,11 @@ extern "C" { timeout = be_toint(vm, 4); } // open connection - bool success = tcp->connect(address, port, timeout); + IPAddress ipaddr; + bool success = WifiHostByName(address, ipaddr); + if (success) { + success = tcp->connect(ipaddr, port, timeout); + } be_pushbool(vm, success); be_return(vm); /* return self */ }