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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:40:20+00:00 2026-06-05T05:40:20+00:00

This has been asked before , but did not receive a satisfactory answer. From

  • 0

This has been asked before, but did not receive a satisfactory answer.

From my Android application, I need to send an HTTP request to a PC attached via USB. Typically, communication using ADB is one-way, from PC to Android.

As mentioned in the answers to the aforementioned duplicate, this has been done before: Android Usb Port Forwarding. If I really needed to, I could just download this app and botch it, but I’d much rather implement this within my own app.

Any ideas?

  • 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-05T05:40:22+00:00Added an answer on June 5, 2026 at 5:40 am

    It is not actually the communication which is one way, but the ability initiate connections.

    To do this with standard android functionality, you will conceptually have to tunnel the device-initiated connections through an existing PC-initiated connection. For example, using off the shelf tools:

    1. Set up an ADB port forward from PC to device
    2. Run an SSH server on the android device on an unprivileged port number corresponding to your adb forward
    3. Connect to the phone from an SSH client on the PC through the ADB forward, and set up an SSH forward of a port on the phone back to a port on the PC
    4. Run a server on the PC listening at the destination port of the SSH forward.
    5. Have your code on the phone contact the server on the PC via that SSH port forward

    You don’t actually have to use SSH, it’s just that this packages up the pieces ready to use.

    As an alternative idea, some Android devices which support USB tethering to provide mobile network service to a PC implicitly end up creating a bi-directional IP network over the usb cable, which you can use for other purposes. But be very careful that you don’t accidentally route all the PC’s network traffic through the phone.

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

Sidebar

Related Questions

I know this has been asked before, but I did not find its answer
I know this question has been asked before but the solutions did not work
I apologize if this has been asked before. I searched but did not find
This has been asked before but I cannot find the answer I need. 1)
This has been driving me nuts. I hope it's not been asked before but
I'm not sure if this question has been asked before but are there any
Sorry if this has been asked before, I did check but couldn't find anything...
I believe this has been asked before but no concrete answer has been determined.
I am not sure whether this has been asked before; I did a few
This has been asked before but I can't find a definitive answer, in code.

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.