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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:46:34+00:00 2026-05-22T19:46:34+00:00

We need to tunnel a port on a cloud server to an Android device.

  • 0

We need to tunnel a port on a cloud server to an Android device. Now, we’re using a SSH client on Android (Jsch) to initiate a reverse port forward. This works, but we do not need / want the overhead of encryption / authentication.

Essentially, a simple IP tunnel that can be established from the client side (Android) to a server in the cloud.

Googling on this topic was not promising, so I thought I’d give it a try here and see if I can get any leads. Obviously we’d rather not build this ourselves from scratch.

  • 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-22T19:46:35+00:00Added an answer on May 22, 2026 at 7:46 pm

    This is actually rather simple to implement in Java. The tunneler app on the device opens two connections, one to the server and one to the service on the device. Now if you use Input-/OutputStreams (as as ooposed to nio Channels) you need 2 threads that are each reading on one of the InputStreams and just write everything they received to the opposite output stream. On the server you will need a similar process that gets it’s two connections from ServerSocket.accept and needs to be able to find out which one is the tunneler and which it a client of the service (i.e. tests for the header of the tunneled protocol on incoming connections).

    This becomes a bit more complicated if you want to be able to tunnel multiple connections at the same time. You would need to implement some sort of protocol for this to be able to dispatch the tunneled packets to multiple connections on the device if you want to avoid to open multiple tunnel connections.

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

Sidebar

Related Questions

I need to create a script that automatically setup a ssh tunnel. I think
I need to create an ssh tunnel, then do something, then tear the tunnel
As a part of a larger application I need to implement an SSL tunnel
Been back and forth on this recently. Trying to attach a SSH tunnel from
I need to do a mysqldump of a database on a remote server, but
i am writing a simple client/server chat program with indy 10 (blocking mode) and
I want to create an SSH Tunnel in Java. I noticed quite a few
I'm using urllib2 to interact with a webserver. For the specific problem I need
I need to do some work on a server to which I don't have
I'd like to make a git-daemon go through a permanent ssh tunnel. I accomplished

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.