Below you can find the complete code of a small test app.
It finds the main IP address, trys to find the related subnet mask, and from these two it gets a subnet broadcast address to use subsequently.
At each press of the "Send Dgrm" button, an unconnected UDP transmission is started.
At each press a packet is sent on the network (verified this with Wireshark packet sniffer). But my application shows a received packet only every 2 packet sent. I fail to understand why.
Hope someone can help me trace this.
It finds the main IP address, trys to find the related subnet mask, and from these two it gets a subnet broadcast address to use subsequently.
At each press of the "Send Dgrm" button, an unconnected UDP transmission is started.
At each press a packet is sent on the network (verified this with Wireshark packet sniffer). But my application shows a received packet only every 2 packet sent. I fail to understand why.
Hope someone can help me trace this.
Attachments
Last edited by a moderator: