SwiftSocket icon indicating copy to clipboard operation
SwiftSocket copied to clipboard

From real device cannot able to send bytes

Open muga87 opened this issue 4 years ago • 1 comments

Hi, i need to send array of bytes to server. I have tried from simulator I can able to send and getting response. to establish connection cam using client = TCPClient(address: myhost, port: myport) (in viewDidLoad) Same thing when I tried to send from iPhone device, connection is success but can not able to send bytes. I am getting following error.

Error in data sent : "The operation couldn’t be completed. (SwiftSocket.SocketError error 3.)"

am I need to do anything configuration in device?

muga87 avatar Jul 22 '21 13:07 muga87

Here ' myhost' = "172.20.10.7" am passing. same thing works fine in simulator but not in iPhone device.

muga87 avatar Jul 23 '21 07:07 muga87