First: the WiFiUdpSendReceiveString example works fine.
2nd: my old ESP32-arduino-stuff (converted to Nano Connect) refused to send a UDP packet.
the reason was here:
Attention: the calls of WiFi.config() are diffrent (unfortunatly).
WiFiNINA -> WiFi.config(ip, dns, gateway, subnet);
ESP32 -> WiFi.config(ip, gateway, subnet, dns);