10-28-2012 02:09 AM - edited 10-28-2012 02:28 AM
Hi All,
I am developing network app based on Sockets (TCP/UDP) using cascades. I tested my code on PC using QTCreator and it worked fine. when I ported client code to BB10 cascades and tried to connect to PC, it failed to connect.
I downloaded all sockets tutorials from BB10 tutorials repositories and they failed to connect to PC.
I uploaded sample code that doesn't work with me: MyUdpTest
Please help as it is very important for me to finish my app
Thank you,
Hisham
10-28-2012 02:29 AM
Check the firewall on your PC...
10-28-2012 02:43 AM
the issue is not related to firewall
I alreade developed Android app : https://play.google.com/store/apps/details?id=com.
and I ported it to BB10 with android runtime and it works fine on bb10 device
but I am rewriting my app using cascades and it doesnt work
10-29-2012 10:10 AM
any help ![]()
10-30-2012 03:43 PM
hi,
the problem appears to be your bind - you are telling the socket to only accept from and send to LocalHost.
- mySocket2->bind(QHostAddress::LocalHost,9876);
+ mySocket2->bind(QHostAddress::Any,9876);
change it to Any - and I see data in my packet sniffer...
hope this helps!
10-30-2012 04:46 PM
It works ![]()
Thank you very much for your support.
I also managed to communicate with my current server developped by Java using UDP ![]()