08-13-2008 07:10 AM
I've problems using socket connection.I used this line
sc = (SocketConnection)Connector.open("socket://"+_cfgH
my server for now is into my LAN. the addres server is 192.168.1.101
the address phone is 192.168.1.4. Both I can ping, from server to phone and from phone to server
I tried also but doesn't work:
sc = (SocketConnection)Connector.open("socket://"+_cfgH
the Connector.open doesn't go ahead is blocked.
I tried also socketdemo, server and phone app, present into jde 4.5.0
haa missing....on emulator this work:
sc = (SocketConnection)Connector.open("socket://"+_cfgH
thanks
08-13-2008 11:24 AM
It looks like you are trying to connect to an private IP address. Have you tried using a public IP address?
When using deviceside=true, the connection is routed over the carrier's network. This means that the connection needs to flow over their network, the Internet and come in through your firewall to the destination.
When using deviceside=false, the connection is routed through your BlackBerry Enterprise Server and can come out within your Intranet. Note that his does require the BlackBerry be connected to a BlackBerry Enterprise Server.
08-13-2008 02:05 PM
I did other test.. . Yes on an external address IP and using the carrier connection, it work. But if I disable the carrier connection and mantain only wifi, it doesn't work.
for wifi must I specify some other option, into string connection ?
thanks
08-13-2008 08:24 PM
You are correct, you need:
;interface=wifi
That is all.
Review the following video for more info on this and other network options:
http://www.blackberry.com/DevMediaLibrary/view.do?