03-07-2010 04:42 AM
Just a question? .
I am following the SocketDemo example in the samples been able to execute and it works fine.
in that example the listening socket is on the PC and the requestor is on the blackberry.
Is it possible to have the listening socket on the blackberry so that i can send requests from another socket or application.
Can anyone please provide me some help or point in right direction
any help is appreciated
03-07-2010 03:45 PM
While you may be able to run a socket server on the BlackBerry, besides WIFI (and maybe BES but not sure) connections, the BlackBerry itself does not have its own IP address for you to target it. Even over WIFI, I'm not sure that you'd be able to access this server from another BlackBerry or another machine since I haven't tried that.
03-08-2010 02:03 AM
thanks for your reply your question raised many concerns.
i think the best way would be to have a listening socket on the computer and the recieving socket running continously on blackberry
03-08-2010 10:06 AM
It is possible to open an equivalent of a TCP or UDP server socket.
The typical catches are:
1. Typically, the handheld is connected to a private network inside the carrier network infrastructure. This network has NATed and firewalled access to the Internet. However, since the handheld has an internal non-routable IP address and since it's behind NAT + firewall, it's not easy to receive incoming TCP connections from the Internet or UDP datagrams from sources to which they haven't been sent first by the handheld. This also applies in the case of Wi-Fi, where the handheld enters the IP network through a private network with NATed + firewalled Internet access. However, the case of Wi-Fi is made easier because it's easier to place another handheld on the same private network in order to connect to the handheld running the server.
Note that some cellular accounts are configured to have non-NATed access to the Internet. Moreover, access from the Internet might not be an issue if you are developing an application for a private APN.
2. InputStreams from incoming TCP connections might not return all the data (on some handheld software) until the streams are closed.
03-09-2010 12:49 AM
i think your post clarifies lot of questions.
Again i have small concern since we are able to assign IP to the handheld on the router by its MAC address i think there might be a possibility.
03-17-2010 03:57 AM
further to this post.
I have found a way to assign IP to BB device..
then if i assign a IP on the device can i make the device as a server which will listen to incoming connections
07-21-2010 02:31 AM - last edited on 07-21-2010 05:49 AM by jakoby4204
hi ,I have the same problem, you have the solution for it? Can you share a little bit?
EDIT: Personal Information Removed - Info such as e-mails are prohibited for security purposes