I'm not exactly sure if the following scenario is possible.
Using only UdpClient or a Udp Socket, i would like to achieve a one publisher and multiple client environment.
Udp server is broadcasting on an isolated machine, over the internet. One, or multiple clients 'subscribe' or 'unsubscribe' as needed, thus receiving the broadcast.
Is is possible? Thanks.
EDIT: If so, might the answer-er elaborate?
EDIT: Is it possible without tracking the subscribers?
ADDITIONAL INFO:
Existing, client code:
IPEndPoint IPEP = new IPEndPoint(IPAddress.Parse("EXTERNAL IP"), PORT);
UdpClient UC = new UdpClient();
byte[] REZ;
while (true)
{
REZ = UC.Receive(ref IPEP);
Console.WriteLine("REC: " + Encoding.ASCII.GetString(REZ));
}
Can the server be that simple as well? Am I missing something?
ADDITIONAL INFO: When using the real EXTERNAL IP i get the following error: You must call the Bind method before performing this operation.