Hi All
I am developing an Tcp client in C# and I am using the TcpClient
class.
I am not able to connect to the server.
Debugging the application I can see that the call to Connect
is successfull but after I do this , I check with netstat
the status of the connection on both server and client. The result is that the server the connection is ESTABLISHED
, but on the client I cannot see any connection to the server in netstat result.
Reading the TcpClient
instance I can see that the property Connected
is true so it should be fine but when I try to read from the NetworkStream
it hangs.
When I say it hangs I mean that the server is sending data but the readline doesn't get any data at all.
Do you know what could be the issue and some workaround?
Thanks