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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:33:40+00:00 2026-06-01T15:33:40+00:00

I have a client and a server app on Android (that uses ZeroC –

  • 0

I have a client and a server app on Android (that uses ZeroC – Ice platform for communication). Server listens on TCP port 10000 and client uses TCP port 5501 (arbitrary port numbers I have chosen).

When I telnet to server and run redir add tcp:5501 tcp:10000 it works smooth.

However, due to my current system setup (using androidx86 binary through a virtual machine), I can no longer telnet to the server. So I was hoping I could use adb forward instead. However, whatever port combination I tried, I couldn’t get it to work.

I would really appreciate if someone could shed some light on these:
– Is it possible to telnet to a device replicate or device? I’ve read on another post on stackoverflow that telnet interface is only available for emulator
– What is the difference between redir and adb forward? How should I use adb forwarding to achieve redir tcp:A:B on server?

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-06-01T15:33:42+00:00Added an answer on June 1, 2026 at 3:33 pm

    I’ve finally managed to get it to work. Several comments

    • USB connected devices cannot be reached via ethernet. They can be reached via wireless network (assuming they are connected to the same network with the other party)
    • VirtualBox has its own NAT forwarding. Without port forwarding, under default networking configuration (which is NAT), the virtual device is inaccesible.

    My working setup is as follows

    • A USB-connected device connects to the PC via wireless (Find out your PC’s local IP address, which is often something like 192.168.1.x)
    • I have enabled VirtualBox forwarding for NAT. My option is TCP 10000:10000 (where 10000 is an arbitrary port number. Note that it should be higher than 1024) So when my USB-connected device connects to the PC at port 10000, it is forwarded to the virtual device via VirtualBox’s forwarding.
    • Virtual device listens to TCP port 10000. (I didn’t specify host address to make life easier)
    • If you get a ‘NetworkOnMainThread’ exception, use

      StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
      StrictMode.setThreadPolicy(policy);
      

    Hope this helps someone

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

Sidebar

Related Questions

I have a simple client-server app on android. the android service communicates with the
I have an ASP.NET MVC server app and client code which uses jquery. I'd
Im writing a client/server app for android that sends a username and password to
I have an app in android which is a kind of client-server. I've established
I have got my android app that uses HttpClient to reach my servlet deployed
i have an Http client in my android app that changes messages with a
I have a client who needs an Android App that can recognize spoken commands.
I have an android app that needs to connect frequently to the server to
i have client-server app, I'm managing connections with Threads and handlers inside app, but
I have client-server app. Client on C++, server on Java. I am sending byte-stream

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.