This project has moved. For the latest updates, please go here.

network chat demo: the requested address is not valid in its context

Jan 29, 2014 at 2:22 PM
i'm looking into writing a audio chat program that uses PTT (push-to-talk) headsets. i started playing with the Network Chat Demo. perhaps if i've missed the point of the demo. it works fine on the loopback ip or the machine's unique ip (e.g. but when i have it running on two different machines with the IPs pointing at each other ( points to and vice versa), i get the error in the subject line when i click start streaming. in the code, i see a comment about code to allow us to talk to ourselves for test purposes...
            udpSender = new UdpClient();
            udpListener = new UdpClient();
            //endPoint = new IPEndPoint(IPAddress.Parse(""), 7080);
            // To allow us to talk to ourselves for test purposes:
            //udpSender.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
            udpListener.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
evidently we're not to change the IP in the demo? i'm not sure what changes in the code i'd need to make here to have it work between two machines. any pointers appreciated.
Jan 29, 2014 at 6:55 PM
well, i figure it out what changes i needed to least i got something working.