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

need to know what trigger this error.Im using windows application and web services for the socket program. Already disable the firewall. and got another application that connect to the same ip and port but the app still run as expected.

here my code :

using (CS.CommunicationServiceClient client = new CommunicationTest.CS.CommunicationServiceClient())
                string data = data_connect;
                data = data.ToUpper();
                string IP = txtIP.Text;
                int PORT = Int32.Parse(txtPort.Text);

                client.Send(IP, PORT, data);

1 solution

The Error 10061 means Target server rejects connection attempt due to security settings.

I found This link[^] that might help you. Also, Google is your best friend.

Best of luck.
Share this answer

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