Use Proxy in MicroEmulator

arp14 Tips & Trick, Tutorial, Windows PC Tags: , , , , , , 0

Hi all. If you don’t know what is MicroEmulator and what it does then please take your time to read this article – Run Opera Mini on PC / Windows at Fullscreen. This article is about use proxy in MicroEmulator as many Mobile GPRS/EDGE/3G internet connections use proxies to access internet.

To use proxy in MicroEmulator, go to the following path –
C:\Users\Cyberster\.microemulator\
Now open “config2.xml” in Notepad++. Any other text editor like Komodo edit, Adobe Dream Weaver built-in code editor, etc. will do the job as well. You can use the regular notepad too but codes become messy in it.
This is the default auto generated “config.xml” as below –
<config>
	<files>
		<recent maxCapacity="10">
			<midlet>
				<name>Opmin7031438HandlerUI</name>
				<url>file:///C:/microemulator-3.0.0-SNAPSHOT/Opmin7031438HUI208.jar</url>
			</midlet>
		</recent>
		<recentJadDirectory>C:\microemulator-3.0.0-SNAPSHOT\</recentJadDirectory>
	</files>
	<system-properties>
		<system-property name="microedition.profiles" value="MIDP-2.0"/>
		<system-property name="microedition.configuration" value="CLDC-1.0"/>
		<system-property name="avetana.forceNativeLibrary" value="true"/>
	</system-properties>
	<devices>
		<device>
			<name>Resizable device</name>
			<filename/>
			<descriptor>org/microemu/device/resizable/device.xml</descriptor>
		</device>
	</devices>
	<windows>
		<main onstart="true">
			<x>0</x>
			<y>0</y>
			<width>232</width>
			<height>534</height>
		</main>
	</windows>
</config>

Now, go to “system-properties” section and add the code as below –

		<system-property VALUE="Proxy_Address" NAME="http.proxyHost"/>
		<system-property VALUE="Proxy_Port" NAME="http.proxyPort"/>
		<system-property VALUE="localhost" NAME="http.nonProxyHosts"/>

Note: “Proxy_Address” and “Proxy_Port” is your proxy and post respectively. This two fields depends. Example: Proxy and Port of Reliance’s WAP connection rcomwap is 10.239.221.7:8080

Note: Your file maybe different but that does not matter. You just need to add the above three lines in right place. This is the most important thing to do.

The file should look like this now –

<config>
	<files>
		<recent maxCapacity="10">
			<midlet>
				<name>Opmin7031438HandlerUI</name>
				<url>file:///C:/microemulator-3.0.0-SNAPSHOT/Opmin7031438HUI208.jar</url>
			</midlet>
		</recent>
		<recentJadDirectory>C:\microemulator-3.0.0-SNAPSHOT\</recentJadDirectory>
	</files>
	<system-properties>
		<system-property name="microedition.profiles" value="MIDP-2.0"/>
		<system-property name="microedition.configuration" value="CLDC-1.0"/>
		<system-property name="avetana.forceNativeLibrary" value="true"/>
		<system-property VALUE="Proxy_Address" NAME="http.proxyHost"/>
		<system-property VALUE="Proxy_Port" NAME="http.proxyPort"/>
		<system-property VALUE="localhost" NAME="http.nonProxyHosts"/>
	</system-properties>
	<devices>
		<device>
			<name>Resizable device</name>
			<filename/>
			<descriptor>org/microemu/device/resizable/device.xml</descriptor>
		</device>
	</devices>
	<windows>
		<main onstart="true">
			<x>0</x>
			<y>0</y>
			<width>232</width>
			<height>534</height>
		</main>
	</windows>
</config>

Now save the file and run MicroEmulator. Enjoy 🙂

Need help? Just comment below, I’ll be back to you !

Leave a Reply

Note: Your email address will not be published. Required fields are marked *