![]() In Delphi I tried the component TcpClient as well as the Indy component TIdTCPClient - the error appears on both.įor testing purpose I wrote a Client-Application in C# where the error didn't occur (same address and port). If not TcpClient1.Connect() then // Error 10061 Procedure TForm1.btnConnectClick(Sender: TObject) My Problem is, that I get error # 10061 "Connection refused" in the Client (Delphi) Application when the socket tries to connect to the server. TcpClient c = listener.AcceptTcpClient() Ĭonsole.WriteLine("Connection established.") Ĭonsole.WriteLine("Error: " + e.Message) TcpListener listener = new TcpListener(localAddress, port) NET-Framework 4.5.1 for the C#-Application and Delphi 7 (Embarcadero) for the Client-Application.īoth Applications run on the same PC, therefore I set IP-Address to "localhost" or "127.0.0.1".Ĭonsole.WriteLine("Server waits for a client") I'm using Microsoft Visual Studio Community 2017 and. ![]() The C#-Application is the TCP-Server and Delphi-Application represents the TCP-Client polling Server for information.
0 Comments
Leave a Reply. |