tetherfi icon indicating copy to clipboard operation
tetherfi copied to clipboard

Redirecting 192.168.49.1 Traffic to 192.168.0.X

Open Zig-VS-TypeScript-VS opened this issue 8 months ago • 4 comments

~~Allow custom editing of Proxy URL/hostname~~

~~The IP address assigned by the Wi‑Fi router.~~ ~~> 192.168.0.X~~ ~~192.168.1.X~~


https://github.com/sequentialread/AndroidSocks5Proxy Redirecting 192.168.49.1:8228 Traffic to 192.168.0.X:8228

Operation Steps

  1. Mobile device IP: 192.168.0.100
  2. Enable tetherfi: 192.168.49.1:8228

Redirect traffic from 192.168.49.1:8228 to 192.168.0.100:8228

  1. Enter proxy settings in Windows 10: 192.168.0.100:8228

Zig-VS-TypeScript-VS avatar Apr 12 '25 08:04 Zig-VS-TypeScript-VS

Hello

Unfortunately this is not possible, as the DHCP distribution of addresses is controlled by a low level part of the WiFi Direct implementation on Android. As a third party app, I do not have access to control this part, unless new APIs have been added recently.

I will double check, but sadly, I do not believe this is something a third party app can do :(

pyamsoft avatar Apr 12 '25 14:04 pyamsoft

hello @pyamsoft https://github.com/sequentialread/AndroidSocks5Proxy The traffic from 192.168.49.1:8228 can be forwarded to 192.168.0.X:8228 on the LAN?

Operation Steps

  1. Mobile device IP: 192.168.0.100
  2. Enable tetherfi: 192.168.49.1:8228

Redirect traffic from 192.168.49.1:8228 to 192.168.0.100:8228

  1. Enter proxy settings in Windows 10: 192.168.0.100:8228

Zig-VS-TypeScript-VS avatar Apr 13 '25 00:04 Zig-VS-TypeScript-VS

At an application level I can't control SNAT or DNAT so this isn't possible sadly, to my knowledge at least.

What I could possibly do is bind the Proxy server to the 0 address on all interfaces, and then you may be able to directly access it from 0.100

pyamsoft avatar Apr 13 '25 00:04 pyamsoft

What I could possibly do is bind the Proxy server to the 0 address on all interfaces, and then you may be able to directly access it from 0.100

Cool

Zig-VS-TypeScript-VS avatar Apr 13 '25 02:04 Zig-VS-TypeScript-VS