02-25-2010 12:39 AM
Hello, I'm getting IOException when I send a datagram to my udp server from 4.5 or 4.6 version simulators. But the same code works fine with 4.7 simulators. Can somebody tell does 4.5 and 4.6 OS version of Blackberry support UDP or not..I checked the samples that we get with JDEs. I could see an UDP example only with the 4.7 version and not with 4.5 or 4.6. Thanks in advance...
02-25-2010 05:49 AM
UDP works fine on v4.5.0.83+ and all v4.6+. It doesn't work in some simulators though. For example, UDP works just fine in the Curve 8900 simulator bundled in JDE v4.6.1.
02-25-2010 09:25 AM
Other simulators in which UDP functions:
- Storm 9530
- Bold 9000
- Bold 9700
- 8830 World Editon
03-04-2010 07:16 AM
03-04-2010 11:55 AM
I don't see why not. You have to ensure that the Firewall on the other end will let the packet in, but the connection itself is viable. Just bear in mind that BlackBerry devices do not have IPs of their own.
Hope that helps,
~Dom
03-04-2010 09:24 PM - last edited on 03-04-2010 09:27 PM
slimshady639 wrote:Hello, I'm getting IOException when I send a datagram to my udp server from 4.5 or 4.6 version simulators. But the same code works fine with 4.7 simulators. Can somebody tell does 4.5 and 4.6 OS version of Blackberry support UDP or not..I checked the samples that we get with JDEs. I could see an UDP example only with the 4.7 version and not with 4.5 or 4.6. Thanks in advance...
UDP works on the Bold simulator (v4.6.0.293) However, sometimes I will get an IOException on the device. When that happens, I just re-create a new datagram object.
03-08-2010 03:36 PM
BlackBerrys do have IP addresses assigned to them. For example, they do have an IP address assigned to their WLAN interface (when it's connected to a WLAN). They also do have an IP address assigned to them by the carrier for each IP tunnel to a Packet Data Network (PDN, as identified by APN), although it most typical scenarios that IP address is a private IP address.
03-16-2011 04:03 PM
Hello, I'm getting an IllegalArgumentException when I try to send a datagram using udp with UDPDatagramConnection.
I use 4.5 SDK version.
The text in the excepction is "java.lang.IllegalArgumentException: Bad address"
When I debug, the _address in the Datagram have the value "datagram://200.123.130.117:5060" (IP from my server)
when I execute the line "socket.send(dgram);" where "socket is a UDPDatagramConnection and dgram is the Datagram", I have the exception.
I don´t understand what is wrong.
Can somebody help me please?
Thanks in advance...
03-16-2011 04:17 PM
@titore: Welcome to the forums!
Unfortunately, pre-4.7 BlackBerrys had trouble working with UDP. If you can replace it with TCP, do so. If you can't, you are out of luck (seriously).
03-17-2011 09:42 AM
really? ups...
I can´t to replace with TCP!!!
the server only works with udp...
if I migrate other version? 4.7 o higher?