What is wrong here?
IPAddress ipAddress = IPAddress.Parse ("10.10.20.1 ");
IPEndPoint ipEndPoint = new IPEndPoint(ipAd dress, this.port);
this.tcpClient = new TcpClient(ipEnd Point); // PROBLEM HERE
=> Exception: "The requested address is not valid in its context"
This works:
this.tcpClient = new TcpClient("10.1 0.20.1", this.port);
However, the latter is somehow slow, because it seems that in this
case a DNS resolution takes place. This is exactly what I'd like to
avoid.
Any ideas?
Regards HW
IPAddress ipAddress = IPAddress.Parse ("10.10.20.1 ");
IPEndPoint ipEndPoint = new IPEndPoint(ipAd dress, this.port);
this.tcpClient = new TcpClient(ipEnd Point); // PROBLEM HERE
=> Exception: "The requested address is not valid in its context"
This works:
this.tcpClient = new TcpClient("10.1 0.20.1", this.port);
However, the latter is somehow slow, because it seems that in this
case a DNS resolution takes place. This is exactly what I'd like to
avoid.
Any ideas?
Regards HW
Comment