I have the persmissions correct I beleive.
privilege/download
privilege/push
privilege/network.set
privilege/network.ge
feature/network.internet
feature/network.wifi
int sock2; memset((char *)&sock2, 0, sizeof(sock2)); sock2 = socket(AF_INET, SOCK_DGRAM, 0); if (sock2 < 0) { display("Network err: Cannot make socket\n"); return; } int on=1; int success = setsockopt(sock2, SOL_SOCKET, SO_BROADCAST, &on, sizeof(on)); if (success < 0) { display("setsockopt failed\n"); return; } //reply const char* reply = "watch"; sockaddr_in data_to; data_to.sin_family = AF_INET; data_to.sin_port = htons((u_short)ATTENDANCE_PORT);//attendance port is 22142 data_to.sin_addr.s_addr = inet_addr("127.0.0.0"); int ret = sendto(sock2, reply, 5 , 0, (struct sockaddr *)&data_to, sizeof(sockaddr_in)); if (ret == -1){ sprintf(err, "Network Err %i", errno); display(const_cast<const char*>(err)); } return;