Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tcpclient error message 10049

Status
Not open for further replies.

murrayja

Programmer
May 6, 2000
90
US
The requested Address is not valid in its context"

the ipendpoint that i give new tcpclient(ipep)
is 192.168.1.4 : 8080 which is on my LAN.
I can ping this address.
I have a tcplistener running on this address.

IPHostEntry heserver = Dns.GetHostEntry(tb_destname.Text);
IPEndPoint ipep = new IPEndPoint(heserver.AddressList[0],
Convert.ToInt32(tb_destport.Text));
client = new TcpClient(ipep);


Anyone have a clue of what context it is not valid in?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top