Inspecting Java emulator's network traffic with Fiddler
m (R2d2rigo - Added a warning about Fiddler2's potential problems.) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot update - Fix metadata) |
||
| Line 5: | Line 5: | ||
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] --> | |sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] --> | ||
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> | |installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> | ||
| − | |devices= | + | |devices= Java Emulator |
| − | |sdk= | + | |sdk= Nokia SDK 2.0 |
|platform= Series 40 | |platform= Series 40 | ||
| − | |devicecompatability= | + | |devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) --> |
|dependencies= Fiddler | |dependencies= Fiddler | ||
| − | |signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer --> | + | |signing= <!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer --> |
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. --> | |capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. --> | ||
| − | |keywords= | + | |keywords= <!-- keywords --> |
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese --> | |language= <!-- Language category code for non-English topics - e.g. Lang-Chinese --> | ||
|translated-by= <!-- [[User:XXXX]] --> | |translated-by= <!-- [[User:XXXX]] --> | ||
| − | |translated-from-title= <!-- Title only --> | + | |translated-from-title= <!-- Title only --> |
|translated-from-id= <!-- Id of translated revision --> | |translated-from-id= <!-- Id of translated revision --> | ||
| − | |review-by=<!-- After re-review: [[User:username]] --> | + | |review-by= <!-- After re-review: [[User:username]] --> |
|review-timestamp= <!-- After re-review: YYYYMMDD --> | |review-timestamp= <!-- After re-review: YYYYMMDD --> | ||
|update-by= <!-- After significant update: [[User:username]]--> | |update-by= <!-- After significant update: [[User:username]]--> | ||
|update-timestamp= <!-- After significant update: YYYYMMDD --> | |update-timestamp= <!-- After significant update: YYYYMMDD --> | ||
| − | |creationdate= | + | |creationdate= 20121219 |
| − | |author= [[User:isalento]] | + | |author= [[User:isalento]] |
}} | }} | ||
| Line 39: | Line 39: | ||
== Configuring Java Emulator == | == Configuring Java Emulator == | ||
To route connections from Java Emulator to Fiddler, proxy address must be defined in Networking settings. | 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 127.0.0.1:8888 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 | + | Navigate to Tools -> Preferences -> Networking. Usually with Fiddler it is enough to define 127.0.0.1:8888 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 {{Icode|ipconfig}} from command line. |
| − | [[File: | + | [[File:emulator settings.png|none]] |
Now when you initiate a connection from Java Emulator, you should see traffic in Fiddlers window. | Now when you initiate a connection from Java Emulator, you should see traffic in Fiddlers window. | ||
[[File:Fiddler.png|none]] | [[File:Fiddler.png|none]] | ||
Latest revision as of 02:38, 21 December 2012
This article explains how to debug Java emulator’s network traffic using Fiddler
Article Metadata
Tested with
Compatibility
Article
Introduction
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.
Configuring Fiddler
- To install fiddler download package from http://www.fiddler2.com/fiddler2/
After installation is completed you need to configure Connection settings. To do this start Fiddler and navigate to Tools -> Fiddler options -> Connections tab.
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 127.0.0.1:8888 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.
Now when you initiate a connection from Java Emulator, you should see traffic in Fiddlers window.




