Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From real device cannot able to send bytes #213

Open
muga87 opened this issue Jul 22, 2021 · 1 comment
Open

From real device cannot able to send bytes #213

muga87 opened this issue Jul 22, 2021 · 1 comment

Comments

@muga87
Copy link

muga87 commented Jul 22, 2021

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 muga87 changed the title Device cannot able to send bytes From real device cannot able to send bytes Jul 22, 2021
@muga87
Copy link
Author

muga87 commented Jul 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant