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

  • SEARCH
  • Home
  • 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 3601242
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:35:48+00:00 2026-05-18T20:35:48+00:00

I am developing a network app for Android and I’m still stuck on connecting

  • 0

I am developing a network app for Android and I’m still stuck on connecting my real Android device with an device-emulator running on my desktop computer.

I’ve created private network with a router, so the only ones connected to the network are my pc and my mobile phone, in order to avoid firewall/closed ports problems.

My PC ip is 192.168.1.100 and I’m trying to ping each other so I can sea reachability of each network node. Ping works fine from my PC (not the emulator console) to the phone.

The problem is that I want to ping the PC-emulator from my mobile phone, not the PC itself… For that, I use the emulator console… Should I use my computer IP or should I use another one? I’ve seen some ip’s like “10.0.x.x” here http://developer.android.com/guide/developing/tools/emulator.html

But I guess those are for connecting two EMULATORS, right?

Besides, I’ve tried to connect them by socket, creating a redirection for the port via Emulator console, but still can’t connect them.

Any clues?
Thanks!!

  • 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-05-18T20:35:49+00:00Added an answer on May 18, 2026 at 8:35 pm

    I tried the early solution I gave you and it didn’t work. As you said maybe the reason is the redir command of the emulator console only redirects packets comming from the localhost.

    So I searched for a simple proxy server and used it in the same machine to test it out.

    http://www.java2s.com/Code/Java/Network-Protocol/Asimpleproxyserver.htm

    With this I used the following configuration:

    on the proxy:

    String host = "localhost";
    int remoteport = 3000;
    int localport = 4000;
    

    Then run the emulator instance:

    • Server socket listening on port 2000.
    • Open telnet instance and issue “redir add tcp:3000:2000”

    And finally on the real device open a socket to the machine address on port 4000.

    So the network map looks like:

    Device <-> machine:4000 Proxy machine:3000 <-> :3000 Emulator :2000 -> Application

    This worked for me using the same application on the device and emulator.

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

Sidebar

Related Questions

I am developing a network app for Android and I'm still stuck on connecting
I'm developing an iPhone (and later Android) app that has real-time features, i.e. when
I'm developing an iPhone app that has a network component. I'm developing the app
I am developing one android app in that i have to post some message
I am developing an Android app which needs to poll a specific webpage in
In an iPad app I'm developing, I need to put the network handling on
I'm stuck developing an app because I need to call a method of my
I'm developing a network app, which is group oriented. The thing is that when
The app i'm developing for the app store infrequently needs network connectivity. I've already
I am developing an Android app that should be capable of streaming video to

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.