Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Inspecting Java emulator's network traffic with Fiddler

From Wiki
Jump to: navigation, search

This article explains how to debug Java emulator’s network traffic using Fiddler

Article Metadata
Tested with
SDK: Nokia SDK 2.0
Devices(s): Java Emulator
Platform(s): Series 40
Series 40
Series 40 DP 2.0
Dependencies: Fiddler
Created: isalento (19 Dec 2012)
Last edited: hamishwillee (20 Dec 2012)


When coding an app that uses resources in Internet, sooner or later you run into situation where you would need to see the exact data transferred from a server to your app. Fiddler is a Web Debugging proxy which logs all HTTP and HTTPS traffic in convenient easy to follow manner. With Fiddler you can do many things, but this article concentrates on configuring Fiddler and Java Emulator.

Warning.pngWarning: Fiddler2 is an HTTP proxy and since it intercepts the calls, it can cause potential problems when communicating with a remote server, especially under HTTPS connections. If your application starts to behave erroneously with no apparent reason, close Fiddler2 and any connection problems should be fixed.

Configuring Fiddler

After installation is completed you need to configure Connection settings. To do this start Fiddler and navigate to Tools -> Fiddler options -> Connections tab.

Fiddler settings.png

Check Allow Remote Computers to connect. Chain to upstream gateway proxy is needed, if you are e.g inside corporate network, which uses proxy. By default Fiddler listens to port 8888, for connections.

Configuring Java Emulator

To route connections from Java Emulator to Fiddler, proxy address must be defined in Networking settings. Navigate to Tools -> Preferences -> Networking. Usually with Fiddler it is enough to define as proxy address, but Java Emulator is a different case. You have to define your computer's actual IP address. If you don’t know the IP address, run ipconfig from command line.

Emulator settings.png

Now when you initiate a connection from Java Emulator, you should see traffic in Fiddlers window.

This page was last modified on 20 December 2012, at 23:38.
61 page views in the last 30 days.