• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps ConnectionException refused error

krishnaveni

Well-Known Member
i developed retrieved data from mysql database using soap websevices in android.but i got one error on my emulator.the error is ERROR:java.net.connectionException:/192.168.1.249-connection refused.my ip address is correct...then y dis error is came..plz help me
 
i developed retrieved data from mysql database using soap websevices in android.but i got one error on my emulator.the error is ERROR:java.net.connectionException:/192.168.1.249-connection refused.my ip address is correct...then y dis error is came..plz help me

Lets get the most common problem of the way, do you have the correct permission in your Android manifest file?
 
ya.dis is my android manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.retrieve"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".RetrieveAndroidActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>
</manifest>
then y dis error came...rly me friends.
 
Your IP is NOT correct. You are trying to connect to your host's private IP for your local network. You need to use your public IP. Google "my IP address" and click one of the first few results. This will give you the address you need. Though dont post it here for security reasons.
 
Back
Top Bottom