NSPOSIXErrorDomain Code = 61 "Operation could not be completed. Connection refused"

I have a strange problem sending more than one file to an FTP server over a WiFi network in a specific environment. I use my own native ftp client (made on sockets).

  • When I test the send file transfer on my server "S1" in my environment "E1", everything is fine.
  • When I test the transfer of the send files to the server "S2" in "E1", everything is also in order.
  • When a person sends files to my server "S1" in "E2", everything is in order. But
  • When a person sends files to his "S2" server in "E2", the transfer is interrupted after sending one file (!), And an error message appears:

    Domain Error = NSPOSIXErrorDomain Code = 61 "Operation could not be completed. Connection refused"

UPDATE . And one more important thing: a person can successfully send the same files to “S2” in “E2” via another device (Nokia with Symbian).

I have no idea what is going on. You?

'S1' - my ftp server in my location 'E1' - my environment: an iOS device, WiFi network W1, firewall F1, 'S2' - ftp server in other country 'E2' - environment in other country: an iOS device, WiFi network W2, firewall F2 
+4
source share
1 answer

The network functions of posix will not force iOS to turn on Wi-Fi radio if it falls asleep. You must use some NS methods to make it wake up and start connecting.

+1
source

All Articles