Page 1 of 1

Client gets 'Socket closed. Cannot receive data.' error on connection

Posted: Thu 26 Jul 2018 10:41
by Wilma Lobban
I am using the SecureBridge6 evaluation components. I have created both Server and Client using the steps in the step-by-step tutorials. When the client tries to connect to the remote Server it fails with the 'Socket closed. Cannot receive data.' message. I can ping the server IP Address and using Test-NetConnection to check the server port from the client machine returns True so the socket is definitely open and on the server machine it is shown as listening on that port. Can anyone help with this urgently as I have to decide if SecureBridge6 has the best components for replacing FTP in an application?

Re: Client gets 'Socket closed. Cannot receive data.' error on connection

Posted: Thu 26 Jul 2018 13:16
by ViktorV
It seems that you connect to non FTP server. Please check, that you set correct port and host.
Can you connect to this FTP server using any another third-party FTP client?

Re: Client gets 'Socket closed. Cannot receive data.' error on connection

Posted: Fri 27 Jul 2018 13:10
by Wilma Lobban
I couldn't connect using PuTTY or OpenSSH either which led me to notice that the Address was missing in NetStat results where it showed that the port was listening. I have found the cause of the problem. I hadn't set the ListenAddress in TScSSHServer options. Thanks for your help.

Re: Client gets 'Socket closed. Cannot receive data.' error on connection

Posted: Fri 27 Jul 2018 13:20
by ViktorV
It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about our products.