In my Raspberry Pi2 device I have an app that broadcasts its own IP address (on a timer) to the rest of my network this that code:
public static async Task SendMessage(string message, int port)
var socket = new DatagramSocket();
//socket.MessageReceived += SocketOnMessageReceived;
using (var stream = await socket.GetOutputStreamAsync(new HostName("255.255.255.255"), port.ToString()))
using (var writer = new DataWriter(stream))
var data = Encoding.UTF8.GetBytes(message);
catch (Exception ex)
On my client app it will pick it up via this code:
public static void Start()
UdpClient udpServer = new UdpClient(80);
var remoteEP = new IPEndPoint(IPAddress.Any, 80);
var data = udpServer.Receive(ref remoteEP);
var requestCommand = Uri.UnescapeDataString(Encoding.UTF8.GetString(data, 0, data.Length));
var message = JsonConvert.DeserializeObject<Model.NotifyMessage>(requestCommand);
Shared.RASPBERRY_PI_IP_ADDRESS = message.IP;
This used to work but does not do so now. I had upgraded the Raspberry PI2 'OS' to the latest but I seem to recall it still worked for a while.
It just stopped working yesterday for some reason. I have set the breakpoints and I know the IP address is being sent from the PI it is just not being recieved for some reason.
Is it a virus? Is it a firewall issue on the PI (if so how do I let it through?)?
I can still browse to the home page OK and my Windows IoT Core Watcher still sees the device