Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 7
Registered: ‎07-11-2012
My Device: BlackBerry Bold 9000
My Carrier: Mobily

How to force Blackberry device to conduct a DNS lookup everytime

As a continuation to my previous post (http://supportforums.blackberry.com/t5/Java-Development/HttpConnection-works-on-WiFi-but-not-3G/m-p/... The timeout occuring is due to some caching of an IP address.

 

Here is the problem exactly:

  1. The application connects to www.mydomain.com over Wi-Fi
  2. The client is using their private Wi-Fi connection to mydomain.com resolved to their internal IP (172.x.x.x)
  3. The client then switches to 3G but the Blackberry device already has the IP caches somewhere so a timeout occurs because (172.x.x.x) cannot be accessible from 3G network.

Any ideas how was overcome this issue?