F
felix.citycs
Why I cannot do with this code and exception is thrown with "the
requested address is not valid in its context"
try
{
IPAddress inputDNS_IP = Dns.Resolve(inputDNS_IP).AddressList[0];
// start the data port and listen for connection from input host
this.dataListener = new TcpListener(inputDNS_IP, dataPort);
this.dataListener.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
inputDNS_IP is an intranet IP here.
requested address is not valid in its context"
try
{
IPAddress inputDNS_IP = Dns.Resolve(inputDNS_IP).AddressList[0];
// start the data port and listen for connection from input host
this.dataListener = new TcpListener(inputDNS_IP, dataPort);
this.dataListener.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
inputDNS_IP is an intranet IP here.