I have a server application written is C/C++ that finds an available port, creates a socket, and starts listening. The server posts its IP Address and port to a database so that clients can connect to the server. I have a Client application
written in C/C++ that has no problem connecting to this server; however, I am rewriting that client application in C# and I cannot get the client to connect to the server. I consistently receive a "No connection could be made because the target machine
actively refused it 10.0.0.6:26069" exception. I have stepped through the code and the IP Address and port look correct to me. I don't think this is a firewall problem since my other client is able to connect and I have tried my new client with
the firewall disabled. The server is using verson 2.0 sockets. Below is the code I am using in my C# client to try to connect to my server.