R
Rick
Hi,
I'm trying to get a simple UdpClient app working. I've been looking at the
MSDN info regarding UdpClient. When I set it up on my own PC and send
messages to myself it works OK. If I try to send messages to another PC with
another IP address I get multiple exception, the first one being "The
requested address is not valid in its context". I get this when I create my
UdpClient(iplistener) where iplistener is an IPEndPoint. It doesn't like the
IPEndPoint since it's another PC. I tried a different approach using a
Socket instead of a UdpClient and had the same problem with
socket.ReceiveFrom(endPoint).
I don't think there's a firewall issue since I was able to send TCP traffic
between the two PCs. If anyone has ideas I'd appreciate hearing them. Thank
you.
Rick
I'm trying to get a simple UdpClient app working. I've been looking at the
MSDN info regarding UdpClient. When I set it up on my own PC and send
messages to myself it works OK. If I try to send messages to another PC with
another IP address I get multiple exception, the first one being "The
requested address is not valid in its context". I get this when I create my
UdpClient(iplistener) where iplistener is an IPEndPoint. It doesn't like the
IPEndPoint since it's another PC. I tried a different approach using a
Socket instead of a UdpClient and had the same problem with
socket.ReceiveFrom(endPoint).
I don't think there's a firewall issue since I was able to send TCP traffic
between the two PCs. If anyone has ideas I'd appreciate hearing them. Thank
you.
Rick