Click here to Skip to main content
15,888,340 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have built a C# client-server application. The client connects to the server running on a remote machine by using its IP Address. I have used System.Net.Socket.TCPClient for client and System.Net.Socket.TCPListener for the server.

The application is wokring fine for normal IPv4 address, but when i try to connect to an IPv6 address it fails. The client throws the following exception: No such Hosts Found.

Please help.
Posted

1 solution

There's a sample from Microsoft here[^] that gives a clear solution you might use as a reference. One thing I note is that the article is for .Net 4. It's possible that previous versions of the TCP-related methods don't work with the IPv6 standards, and you may be using an earlier version for your development. If so, try rebuilding the solution using .Net 4 and see if that changes anything.
 
Share this answer
 
Comments
Zaheer Alam 1-Aug-10 8:12am    
Hi Roger,

Thanks for the reply, i will try it and let you know if its working. Although i have built the application in .net 3.5 and don't have .net 4.0

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900