Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: Trouble sending UDP packets in simulator

You might have incude the local port number in the connection string.


This is from the demo. The local port number is 3501 in this case.


 _conn = (UDPDatagramConnection)Connector.open("datagram://;3501");   

Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Trouble sending UDP packets in simulator

In theory, according to javadocs, if you don't specify the local port number, it will be the same as the remote port number. But you never know -- give it a try...


Another thing that occurred to me is that in some simulators networking works OK on WiFi only, whereas on others both cellular and WiFI interfaces work fine. So, try WiFi in the simulator.