My app is unable to receive the UDP packets when running in the emulator. UDP packets are sent by below java program on \"localhost\" over the port 49999.
After connecting to the localhost you may want to check that the port was actually asigned as intended with the command netstat -na in the cmd. It also might be worth a try to use the IP 127.0.0.1 instead.