Click here to Skip to main content
13,289,653 members (58,459 online)
Click here to Skip to main content
Add your own
alternative version


3 bookmarked
Posted 31 Dec 2011

Accessing the Internet from a Blackberry Simulator

, 31 Dec 2011
Rate this:
Please Sign up or sign in to vote.
How to access the Internet from a Blackberry simulator

I had to work on a project recently which involved accessing a web page from a Blackberry device. In order to know what it will look like exactly, I decided to write the page software on my machine, and use a Blackberry simulator from Research In Motion to pull up the page so I’ll know how it will look on the client phones.

Downloading the simulator was easy! You can get the Blackberry Simulator software here. But I ran into an issue: I couldn’t access the internet! All I would see when I opened the browser and tried to access a webpage was a “Requesting…” progress bar at the bottom. No internet access!

I would then receive the message “Unable to connect to the selected Mobile Data Service, please try again later.”

After a little bit of research, I determined that what I needed is the “Blackberry Email and MDS Services Simulator.” You can download the MDS Services Simulator here. I downloaded and installed the simulator, but then I ran into another problem.

The internet on my blackberry simulator still was not working. I looked through the MDS output on the command prompt window, and I noticed an error: “ Address Already In Use: JVM_Bind:8080″. This is because a port listening on a socket can only be bound for listening once. So apparently, I had another process on my PC which was bound to listen on port 8080.

So how can I tell which process was running on 8080? I stopped IIS, restarted MDS but I still got the error. I worked in IT for a long time and know that you can see what processes are using certain ports with a simple command.

Pull up a command prompt window and type the command:

C:\> netstat -a -b

You will get output which shows the running processes and their ports. You’ll probably find an application which is using port 8080 already. All I did from there was kill that process using the Task Manager, and restarted MDS.

Restarting MDS and the Blackberry Simulator after killing that Java process made the Blackberry simulator work. I was connecting to the internet just fine.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Dave C Andrews
Software Developer (Senior) LBMC Technologies
United States United States
I've been developing software since I was 9 years old, in BASIC on a Precomputer 2000. OK, that's a stretch, but hopefully some of the stuff that I learned from that little toy have helped my professional career.

I have a bachelors degree in computer science from MTSU. Currently, I am employed as a senior software developer for LBMC in Nashville, TN. We serve as consultant developers for clients across the southeastern United States, developing mostly in Microsoft .Net with Microsoft SQL Server.

I greatly enjoy my job and my hobbies lie in open source software and in teaching others how to be better programmers. I have a beautiful wife, 2 dogs (a dachshund and an olde-english bulldog) and a cat.

You may also be interested in...


Comments and Discussions

QuestionThank you Pin
Yves2-Jan-12 12:19
memberYves2-Jan-12 12:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 31 Dec 2011
Article Copyright 2011 by Dave C Andrews
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid