Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Support forward command #649

Open
1 task done
fanksy opened this issue Jul 12, 2024 · 2 comments
Open
1 task done

[Suggestion] Support forward command #649

fanksy opened this issue Jul 12, 2024 · 2 comments
Labels
type:enhancement New feature or request

Comments

@fanksy
Copy link

fanksy commented Jul 12, 2024

Pre-issue checklist

  • I've searched the issue list but couldn't find the feature I want

How can Tango be improved?

Can you add forward api?

How should the API change?

adb.forward.addExternal("local address", "device address");

(Optional) Other information

No response

@fanksy fanksy added the type:enhancement New feature or request label Jul 12, 2024
@yume-chan
Copy link
Owner

adb.forward.addExternal("local address", "device address");

Forward tunnel is implemented in ADB server, not ADB daemon.

See #641 (comment), If you are using direct connection mode, you need to listen the local address yourself and forward the connection to daemon using adb.createSocket: https://docs.tangoapp.dev/api/socket/#forward-tunnel

If you are using server-client mode, it's not hard to add forward tunnel commands, but this is not a priority and I'm working on other things right now.

@yume-chan
Copy link
Owner

Please clarity what you want to do, otherwise this issue will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants