Re: UDP Server and clients
You have to send the data to an address. What address are you sending it to? (UDP, as opposed to TCP, basically means that there's no acknowledgement - you just send the data and don't get anything back.)
Re: UDP Server and clients
To bypass my problem I've had a listbox on the server side and when I got a string from the com port, I send it to each address found in my listbox.
Re: UDP Server and clients
Try sending to the address x.x.x.255, where x.x.x is the first 3 numbers of the network internal address.
Re: UDP Server and clients
Is the network internal address the same as the subnetmask?
Re: UDP Server and clients
It better not be. Run Start/Cmd. Type in ipconfig. Look at the IP Address: line. You'll see something like 192.168.1.xxx or 10.200.0.xxx. If you do this from 2 computers, you'll notice that the first three octets (numbers separated by dots) are the same for all computers connected to the same router. Use those 3 numbers with 255 on the end. It might work to send data to all computers on that segment.
The mask is the thing that determines how many octets (or parts of an octet) are needed to determine a network address. The 0s are needed. IOW, 255.255.255.0 says that, if the address is of the form w.x.y.z, w, x and y are all the same, but we need z to determine the computer. If there are more than 253 computers on that segment (0 and 255 can't be used), the mask might be 255.255.254.0 (for up to 506 computers).