iOSDev
iOSDev

Reputation: 3617

Debug as Blackberry Device + Socket connection

I am debugging the Blackberry application using Eclipse -> Debug as -> Blackberry device

Whenever I try to establish socket connection with the server in LAN , I get IOException and I am not able to connect to LAN server through real device.

I am using Blackberry Pearl 8100 device.

Upvotes: 0

Views: 1632

Answers (3)

Anthony Rizk
Anthony Rizk

Reputation: 3666

Based on further comments and discussion, I think this is a better answer:

A BlackBerry device will only automatically route a network connection through the USB port (and so to the local LAN) if the device is activated on a BES.

If the device is a non-BES device, you require special code to do a USB connection - i.e. if you're plugged into USB your device will still attempt to use its radio to make the network connection.

Upvotes: 1

Anthony Rizk
Anthony Rizk

Reputation: 3666

I need a bit more information - the message in the IOException is important - it'll have some information about why the connection failed.

Assuming that your device is connected to a BES, and has a data plan, you should be able to connect to a server on your LAN. Do you know if your device has any connectivity issues? Can you test a connection to the same server using the BlackBerry Browser? It may also have to do with IT Policies on the BES.

Upvotes: 0

Grouchal
Grouchal

Reputation: 9796

You need to install the blackberry mds simulator - then you can get network connections.

NB. When you have a production version of your app: you should note that not all blackberry devices will allow network connections - it will depend on which servers they use.

Upvotes: 0

Related Questions