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 7179447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:08:32+00:00 2026-05-28T17:08:32+00:00

I need to be able to insert a proxy between my application and the

  • 0

I need to be able to insert a proxy between my application and the HTTP server that it communicates with. The HTTP server is running on another machine on the LAN. The proxy is running on the same machine as the emulator.

I am using android-10, and am experiencing these same problems on Ubuntu and Windows 7.

If I start the emulator like this:

emulator.exe @default

Then the application will connect fine.

However, If I start the application like this:

emulator.exe @default -http-proxy 127.0.0.1:8008

Requests made from the internet browser (to Google) will go through the proxy, but the application cannot make a connection.

I have tried setting the proxy settings in the APN, along with using the LAN IP address of my local machine.

The application IS using HTTP (http://developer.android.com/reference/java/net/HttpURLConnection.html), so the proxy should be able to interpret the request.

I can access the server through the internet browser within the emulator with the proxy off, but not with the proxy on.

I ran the emulator with the following line:

emulator.exe @default -http-proxy 127.0.0.1:8008 -debug-proxy

and noticed that requests were going out as:

http_service_connect: trying to connect to 192.168.3.131:8080
http_service_connect: using HTTP rewriter
tcp:192.168.3.131:8080(35): connecting
tcp:192.168.3.131:8080(35): connected to http proxy, sending header
tcp:192.168.3.131:8080(35): sending 39 bytes:
>> 43 4f 4e 4e 45 43 54 20 31 39 32 2e 31 36 38 2e    CONNECT 192.168.
>> 33 2e 31 33 31 3a 38 30 38 30 20 48 54 54 50 2f    3.131:8080 HTTP/
>> 31 2e 31 0d 0a 0d 0a                               1.1....

tcp:192.168.3.131:8080(35): header sent, receiving first answer line
tcp:192.168.3.131:8080(35): received 'HTTP/1.0 200 Connection established'
tcp:192.168.3.131:8080(35): receiving second answer line
tcp:192.168.3.131:8080(35): received ''
tcp:192.168.3.131:8080(35): connection succeeded

But no GET or POST request ever makes it to the proxy.

Any recommendations on how to continue troubleshooting this issue?

  • 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-28T17:08:33+00:00Added an answer on May 28, 2026 at 5:08 pm

    In case anyone comes looking, here is how I solved this issue:

    I set the application to talk directly to the proxy:

    10.0.2.2:8080
    

    Then, I configured the proxy to forward all of these requests to the server:

    FORWARD  -> 192.168.3.30
    

    Not the prettiest solution, but it works fine for a test environment.

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

Sidebar

Related Questions

Hi I need to be able to insert a random value between 1-1000 in
I need to be able to insert/update objects at a consistent rate of at
I need to be able to run an Oracle query which goes to insert
I just need to be able to insert a key/value pair into an object
I have a long running insert transaction that inserts data into several related tables.
I need to build a proxy (maybe a bad description) that receives an XML
I need to be able to insert numbers like 098532 into my table. This
I am in need of a data structure that has fast insert, fast retrieve,
I need to insert an applet into a table-row and get that table-row's height
I need to be able to extract a zip file, and insert the names

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.