Genymobile / gnirehtet

Gnirehtet provides reverse tethering for Android
Apache License 2.0
6.12k stars 565 forks source link

tcp work but udp fails #456

Open ayubowan2u opened 1 year ago

ayubowan2u commented 1 year ago

Hi, I am running IP4 only and noticed that I have no issues with doing web browsing but messaging apps such as Telegram does not work.

I get the following error

2022-08-09 21:32:01.094 INFO UdpConnection: 10.0.0.2:47278 -> 255.255.255.255:137 Open 2022-08-09 21:32:01.094 ERROR Router: Cannot create route, dropping packet: Permission denied (os error 13) 2022-08-09 21:32:07.120 INFO UdpConnection: 10.0.0.2:47278 -> 255.255.255.255:137 Open 2022-08-09 21:32:07.120 ERROR Router: Cannot create route, dropping packet: Permission denied (os error 13)

Any idea on how to fix this?

Thanks

EDIT: as per one of the posts, I enabled mobile data which made apps using udp work but then it appears to use the mobile network - the usage on mobile data goes up. The moment I place a limit on mobile data udp error messages come up again and the apps claim that there is no network.

rom1v commented 1 year ago

UDP broadcast packets are not forwarded. #28 #158 #245

ayubowan2u commented 1 year ago

UDP broadcast packets are not forwarded. #28 #158 #245

Thanks. I did check out a couple of them but the only one post (not any of the above) had a suggested work around of enabling mobile data with the assurance that it will not route data over GSM. I tried that and yes, it gets the udp going and the messaging apps working but when I checked the carrier CDRs, I can see that I get billed for this. Which means this is not a workaround to the problem.

I also saw a post where someone was able to get it all going by creating a fake wifi connection using riru-v26.1.6.r527.cdcb9f34c6-release.zip, EdXposedManager-4.6.2-46200-org.meowcat.edxposed.manager-release.apk and FakeWifiConnection.apk. I downloaded all of the above and installed them but in my case installation failed with EdXposedManager which a few others also have experienced. So, that is not a solution for me either.

I am inclined to try out the solution 3 here https://android.stackexchange.com/questions/2298/how-to-set-up-reverse-tethering-over-usb - it is not as straight forward or elegant as the gnirehtet but will let you know how it goes.

Thanks