H
Horst Walter
What is wrong here?
IPAddress ipAddress = IPAddress.Parse("10.10.20.1");
IPEndPoint ipEndPoint = new IPEndPoint(ipAddress, this.port);
this.tcpClient = new TcpClient(ipEndPoint); // PROBLEM HERE
=> Exception: "The requested address is not valid in its context"
This works:
this.tcpClient = new TcpClient("10.10.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(ipAddress, this.port);
this.tcpClient = new TcpClient(ipEndPoint); // PROBLEM HERE
=> Exception: "The requested address is not valid in its context"
This works:
this.tcpClient = new TcpClient("10.10.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