Pramod
Pramod

Reputation: 1461

Unable to work with the static IP with my blackberry project

I have done a project where the mobile sends it's latitude and longitude to the server every 15mins. To connect with the server every time i used to enter the IP address of the server dynamically in my application. Whenever i tick an option in my app mobile sends an notification to the server with the details of the option that i checked(Check Box) and everything is working fine. I used the code like below:

String url="http://"+ipaddr+"/SFTS/updateLocation.jsp?empid="+empid+"&lat="+lat+"&lon="+lon+";interface=wifi";

Now i got a new Internet connection with static IP. And now i unable to send the notification to the server. When i am checking a checkbox it is displaying nothing either in the server or client. I tried using deviceside=true; deviceside=false but all my attempts are in vain. What is the problem here? Please kindly help me

Upvotes: 0

Views: 118

Answers (1)

Pramod
Pramod

Reputation: 1461

The problem is with the apn. We should include ;deviceside=true;apn=airtelgprs.com in the url is the first option or go to Options -> advanced Options -> TCP/IP -> check the option APN Settings Enabled and give APN: airtelgprs.com. It works fine

Upvotes: 3

Related Questions