I am developing a application using JDE 4.0 for RIM device (6280). This application opens up a HTTP connection over network to exchange information between device and backend server application. I am facing problems while connecting to remote server from RIM device.

I don't have BES ! So I am relying on AT&T/Cingular's mMode and GPRS services on blackberry device to connect to a remote server over INTERNET.

The remote server application is on WEB and is accessible over INTERNET from a WEB BROWSER on a desktop machine.

When I run the application on BLACKBERRY SIMULATOR (JDE 4.0) environment within internal network as well as over internet it works fine. I can connect to the remote server from the Blackberry Simulator on desktop and run the application successfully.

But the application is not working when I deploy the same on RIM device and try to connect to remote server over INTERNET.

Blackberry device that we are using is upgraded and running on OS Version 4.0.

Here is the code that I am using to connect to remote server. The code sends a request to servlet on the server along with some parameters and the servlet fetches information from the backend database and passes back in response. This response is then used over blackberry device for further use in the application.

I would first make sure the carrier will allow the data connection to go through.
I would then check that the firewall was allowing the traffic to go through.
I would then check that the server name is resolving from the internet.

It's going to be one of the above issues, and not an issue with your code.