Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8171911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:36:41+00:00 2026-06-06T21:36:41+00:00

I want to debug my android application, I connect the android device to my

  • 0

I want to debug my android application, I connect the android device to my PC using the USB cable. In my application there is a button to connect with localhost, ip for localhost is 10.0.2.2 and the port is 8080, I have read that when debugging on mobile, the ip 10.0.2.2 is the localhost for android device and not for my PC, so what changes should I make to the ip instead of 10.0.2.2? or do I have to make another change?
In this case my android device is sony ericsson xperia arc s.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:36:42+00:00Added an answer on June 6, 2026 at 9:36 pm

    As 10.0.2.2 is your system (pc)’s local host address (from emulator only). Actually android doesn’t recognized localhost in url. so 10.0.2.2 is for that meant. Also for android device loopback address is 127.0.0.1.

    Your url with 10.0.2.2 is correct. Also you can use Static IP of your system.

    Just check for

    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    

    in your application’s manifest file.

    EDIT:

    Here you are using port 8080 so, try with adb command on your host machine.

    adb forward tcp:8080 tcp:8080
    

    Also please elaborate on this line “i want to debugger my application on my mobile”.

    Note:

    If you are going to test on real device use your Network IP of system (PC).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to debug Android app on Samsung gts5360 device via Windows 7. USB
I want to debug database on android device. My application is very heavy and
I'm quite new to Android and have been using an AVD to debug my
I want to debug an application on Android with GDB, I can hook on
I want to debug my application on my Android phone. However the app itself
In the Android application I have written, there is a portion which allows the
I want to debug TCP/IP interactions for a program I'm enhancing. I don't have
I'm trying to spoof the android player. I want MediaPlayer (I'm using the VideoView
I want to change the status of my gtalk using my application. For that
I want to pass an array from my Android application to my SOAP webservice

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.