C# client is unable to connect to C++ server over TCP on the same machine. Other applications clients in C++ connect just fine.

  • Thread starter Thread starter aliahaider
  • Start date Start date
A

aliahaider

Guest
I keep on getting the exception that server actively has refused the connection.

I have tried htons conversion on the server side for port and IP address but it failed the same way.

I tried it on the client side as well and I still see the failure.

The port is correct and the server is listening on the port based on the" netstat -an" output.

Firewall is turned off.

I have tried to use rawcapture to see what is going on with TCP 3 way handshake between the client and the server on the loop back interface and I am unable to capture any tcp sync, ack or rst packets when I try to establish the connection between c# client and C++ server.

While I can see these tcp packets on the loop back interface when the client is a C++ client running on the same machine and the same C++ server.

The C# and C++ clients both are launched under the same user name and the user has admin privileges.

Continue reading...
 
Back
Top