ESP8266 in AP mode - cannot send UDP

This code below is not sending the UDP data as expected. Any reason why ? The same one if run as Station mode with necessary changes to code send it fine. So what wrong here ? ( I have a similar post in the Newtork group but this one has some corrections done )

#include <ESP8266WiFi.h> // Used for the soft AP
#include <WiFiUdp.h>     // used for UDP comms.

WiFiUDP Udp;

const char *APssid = "ESP8266-AP";
const char *APpassword = "Esp8266rocks";

const char * udpAddress = "255.255.255.255";
const int udpPort = 52791;

//*************************

void setup() {

  Serial.begin(9600);              //fire up the serial port

  WiFi.mode(WIFI_AP);
  WiFi.softAP(APssid, APpassword);
  Serial.println();
  Serial.print("Server IP address: ");
  Serial.println(WiFi.softAPIP());
  Serial.print("Server MAC address: ");
  Serial.println(WiFi.softAPmacAddress());

}
//**************************

void loop() {

  Udp.beginPacket(udpAddress, udpPort);
  Udp.println(millis());
  Udp.endPacket();
  delay(1000); 
}
//**************************

const char * udpAddress = "255.255.255.255";Is this correct ? If the AP dynamically assigns IP addresses they will be 192.168.4.x To send to all then should be 192.168.4.255 I am no UDP specialist i may be wrong.

Deva_Rishi: const char * udpAddress = "255.255.255.255";

Is this correct ? If the AP dynamically assigns IP addresses they will be 192.168.4.x To send to all then should be 192.168.4.255 I am no UDP specialist i may be wrong.

255.255.255.255 is a broadcast address and I don't think its the issue.