-->
Page 1 of 2

UDP broadcast packet to WIN10 PC

PostPosted: Wed Sep 07, 2016 7:26 am
by picstart
The esp8266 using arduino IDE broadcast on xxx.xxx.xxx.255. esp's connect and get IP's from the network the PC is on. One sp8266 broadcasts on xxx.xxx.xxx.255 and other esp's can receive the UDP broadcast packets. xxx.xxx.xxx.xxx is the IP given to esp8266 as they connect. The broadcasting esp and the receiving esp use the same port yyyy
I have tried to get the WIN10 PC to receive the broadcast packet. I have opened the windows firewall to both UDP and the yyyy port. I have tried commercial UDP viewing software for the PC and tried writing lazarus with both synapse and LNET and they all timeout when attempting to read the port.
I'm suspecting this maybe a WIN10 issue.
Has anyone has success with WIN10 receiving broadcast UDP packets?

Re: UDP broadcast packet to WIN10 PC

PostPosted: Wed Sep 07, 2016 11:51 am
by rudy
I have it working on my tablet with Windows 10. I got the app from the pathetic Windows app store. I looked but I can't see it now. It is a packet sender program. Does http and UDP. I will check what the app is when I get home tonight.

Edit

Found it.
https://packetsender.com/

It seems to be primarily a sender program, as it is called. But it also shows received data.

Re: UDP broadcast packet to WIN10 PC

PostPosted: Wed Sep 07, 2016 2:56 pm
by picstart
Thanks for the response. I had already tried packet sender. It is has issues apart from being a bit obtuse to use. Just as well it was free.
It may possibly send a packet but it doesn't appear to receiver any broadcast packets on xxx.xxx.xxx.255:yyyy ( local lan broadcast).
This may be a win10 issue I can get an android to broad cast a packet but it will not receive a broadcast packet.
The esp8266 seems to have no issue with receiving the broadcast packets and responding to the sender.
Can you confirm that with WIN 10 that you can receive a packet addressed as xxx.xxx.xxx.255 on port yyyy.
where xxx.xxx.xxx are the first part of the local lan addressing scheme.

Wire shark can see the broadcast packets it is just I can't get them into a PC program so far.

The broadcasting esp uses port 4097 when it broadcasts to port yyyy
Src Port 4097 aka patrolview.
Dst Port yyyy aka webtie
The receiving esp sees the sender remote port as 4097 after accepting the broadcast packet

Re: UDP broadcast packet to WIN10 PC

PostPosted: Wed Sep 07, 2016 9:20 pm
by rudy
I don't have time now but if there are no better replies I will try and do it this weekend.