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

v055c: Unable to share file through termux python over http.server over LAN #1356

Closed
barkoder opened this issue Apr 10, 2024 · 5 comments
Closed
Assignees
Labels
bug Something isn't working P0 Priority: 0 (urgent and important)

Comments

@barkoder
Copy link

barkoder commented Apr 10, 2024

Steps to reproduce:

  1. Install ReThink v0.5.5c

  2. Install and open Termux.

  3. Install python in termux - pkg install python

  4. echo test > test.file in termux.

  5. Start http-server - python3 -m http.server 12345

  6. curl -O http://<LOCAL_IP_ADDRESS_OF_YOUR_ANDROID_DEVICE>:12345/test.file on a different computer on your local network. This step fails unless you turn off Rethink altogether. Switching to DNS only or Firewall only mode in ReThink doesn't work.

  7. Also the Network log and DNS Log on ReThink shows nothing regarding this request.


I remember an older version of ReThink used to work on Step 5.

Thanks.

@ignoramous ignoramous self-assigned this Apr 11, 2024
@ignoramous ignoramous added bug Something isn't working P0 Priority: 0 (urgent and important) labels Apr 11, 2024
@ignoramous
Copy link
Collaborator

Thanks. In general, we haven't checked if unconnected UDP sockets and server TCP sockets work in all scenarios as at least running TCP servers is a very uncommon thing to do (unconnected UDP sockets are slightly more common but apps don't rely on it solely so it never manifests as a bug, except in cases where it does: #1323).

Two ways to work around this problem:

  1. Exclude Termux (from Configure -> Apps) from Rethink
  2. Turn ON Do not route Private IPs (from Configure -> Network).

@barkoder
Copy link
Author

Thanks @ignoramous . That works!

It would help if the Network log showed that it was being blocked and also why it was being blocked.

@ignoramous
Copy link
Collaborator

ignoramous commented Apr 11, 2024

It would help if the Network log showed that it was being blocked and also why it was being blocked

It isn't blocked. I believe Android doesn't even send us the packets for server TCP sockets. I might be wrong. As mentioned above, we haven't really dug in to this.

@ignoramous
Copy link
Collaborator

In v055j (github, website), we've brought back the previous behaviour of "excluding" proxy-running apps like Termux. Please test on v055j and let us know.

To toggle this behaviour, go to turn ON/OFF Configure -> Network -> Loopback proxy forwarder apps (to be clear, in this case, OFF is what would "exclude" Termux and hopefully make it work).

@ignoramous
Copy link
Collaborator

ignoramous commented May 23, 2024

v055j is on now f-droid too (closing this issue, feel free to reopen) if it hasn't fixed for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Priority: 0 (urgent and important)
Projects
None yet
Development

No branches or pull requests

2 participants