UDP - E 2015 Q&A, Help & Troubleshooting

Guys...i need help in enabling UDP on my Moto E2.
I'm trying to use it as an interface between my Broadlink and the Amazon Echo, the problem is it can't communicate with the Echo as the UDP is disabled.
Running stock Marshmallow, i don't mind flashing it, if there's a rom out there that enable UDP
Thanks

Related

[Q] Why does't ICS supports IPv6 on WIFI?

I mean this is stupid... you can have IPv6 APN and everything, but on WIFI you cant get IPv6 address... I have dualstack LAN at home, every client should get local IPv4 address and public IPv6. But for some silly reason Google decided to not include this in to ICS, but since there is support for UMTS IPv6 APNs it should WORK technically... This works flawlessly on iPhone4S and other clients (read computers) that supports IPv6 on my LAN...
From what I can see, ICS manages to configure a IPv6 global address on its wlan0 interface via autoconfiguration.
Looking at results from tcpdump and other command line tools, there seem to be two other problems:
1) Even though there is a router on the LAN sending router advertisements and the device configures its address, it does not seem to install or use the the default gateway. I am able to ping the phone via IPv6 on the same local /64 global, and its link local, and am able to ping those devices back from the device (ping6 via busybox). I cannot however ping past the local IPv6 global network.
2) None of the web browsers on the phone I have tried seem to be doing AAAA lookups. Confirmed tcpdump, even when trying to resolve names that only have AAAA records, the request only ever goes out for an A record and never a AAAA.
I was able to run a web server on the same local /64 the phone was configured on, and was able to browse to it by its IPv6 address directly through the browser. So it does work, just missing the default route and AAAA DNS functionality it seems.
As an FYI this was tested on a rooted Galaxy S3 SGH-I747M running 4.0.4. I'm assuming the IPv6 functionality wouldn't be any different between this and the SII, but maybe I'm wrong.
themikea said:
1) Even though there is a router on the LAN sending router advertisements and the device configures its address, it does not seem to install or use the the default gateway. I am able to ping the phone via IPv6 on the same local /64 global, and its link local, and am able to ping those devices back from the device (ping6 via busybox). I cannot however ping past the local IPv6 global network.
Click to expand...
Click to collapse
I have a Galaxy S3 SPH-L710 running Android 4.0.4, and I had the same problem with it not configuring the default IPv6 route. There is a sysctl variable that controls whether the Linux kernel automatically adds the default route advertised in the IPv6 Router Advertisement messages, and it defaults to 0 (off) on the phone. Look at /proc/sys/net/ipv6/conf/default/accept_ra_defrtr.
themikea said:
2) None of the web browsers on the phone I have tried seem to be doing AAAA lookups. Confirmed tcpdump, even when trying to resolve names that only have AAAA records, the request only ever goes out for an A record and never a AAAA.
Click to expand...
Click to collapse
When I set accept_ra_defrtr to 1 and cycled my Wi-Fi connection, it came back up and added the default IPv6 route. Now test-ipv6.com on my phone gives me a 10/10 on both IPv4 and IPv6, meaning the DNS resolver is asking for AAAA records too and even preferring them when a host has both A and AAAA, which is the recommended and desired behavior. Loading comcast6.net on my phone shows my IP address as an IPv6 address.
Trouble is, setting sysctl variables in /proc/sys will not survive through a reboot, and there is no /etc/sysctl.conf on Android, so I don't know where to stash this setting so it gets applied on every boot. There is no file anywhere in /system that contains "accept_ra_defrtr" except for the vpnclient.ko kernel module, and that's not loaded, so I'd guess the kernel has been modified to disable IPv6 default routes by default.
Any idea if there's an Android equivalent of inittab or sysctl.conf or how might I go about setting that sysctl variable automatically on boot?
whitslack said:
I have a Galaxy S3 SPH-L710 running Android 4.0.4, and I had the same problem with it not configuring the default IPv6 route. There is a sysctl variable that controls whether the Linux kernel automatically adds the default route advertised in the IPv6 Router Advertisement messages, and it defaults to 0 (off) on the phone. Look at /proc/sys/net/ipv6/conf/default/accept_ra_defrtr.
When I set accept_ra_defrtr to 1 and cycled my Wi-Fi connection, it came back up and added the default IPv6 route. Now test-ipv6.com on my phone gives me a 10/10 on both IPv4 and IPv6, meaning the DNS resolver is asking for AAAA records too and even preferring them when a host has both A and AAAA, which is the recommended and desired behavior. Loading comcast6.net on my phone shows my IP address as an IPv6 address.
Trouble is, setting sysctl variables in /proc/sys will not survive through a reboot, and there is no /etc/sysctl.conf on Android, so I don't know where to stash this setting so it gets applied on every boot. There is no file anywhere in /system that contains "accept_ra_defrtr" except for the vpnclient.ko kernel module, and that's not loaded, so I'd guess the kernel has been modified to disable IPv6 default routes by default.
Any idea if there's an Android equivalent of inittab or sysctl.conf or how might I go about setting that sysctl variable automatically on boot?
Click to expand...
Click to collapse
bro look at your /system/etc/init.d. if it exists, you can add a new script as
#!/system/bin/sh
echo 1>/sys/XXXXXXX
in init.d and name it 89enipv6 or sth.
if it don't work, check your /system/bin/sysinit. if it doesn't exist, google and copy one.
Does anyone know how I can disable IPV6 on my S3 ?
ahoslc said:
Does anyone know how I can disable IPV6 on my S3 ?
Click to expand...
Click to collapse
Why do you want to disable IPv6? It's new better version of IP protocol and should be used whenever it possible.
runapp said:
bro look at your /system/etc/init.d. if it exists, you can add a new script as
#!/system/bin/sh
echo 1>/sys/XXXXXXX
in init.d and name it 89enipv6 or sth.
if it don't work, check your /system/bin/sysinit. if it doesn't exist, google and copy one.
Click to expand...
Click to collapse
In my case of 4.1.3 the value of 0 rewrited in /proc/sys/net/ipv6/conf/wlan0/accept_ra_deftrt on every wifi interface restart, even independently on "all"/"default" values.

[Q] IPv6 Tethering

Hi all,
Assuming the following:
Android 2.3.7 device is connected to an IPv6 internet connection
Tethering is legal for your device/carrier
The ipv6-test gives 10/10 (perfect score) for IPv6 readiness for your phone, and you can access e.g. http://ipv6.google.com using the phone itself
You want to tether to a PC using USB
Device is rooted
Is there a way to give the PC access to the phone's IPv6 internet connection?
I'm assuming that we can't give the PC a public IPv6 address, because the phone is probably only allotted one IPv6 address from the carrier; plus they might treat your plan differently or something if you try to claim another IP address (it's an unnecessary complexity)
So what we actually need to do is, to create a NAT IPv6 space on the device, just like we do for IPv4 when we tether, and provision an IP to the PC that way. Then we have to do something for DNS; I guess we can use OpenDNS's AAAA servers.
Do any of the existing tethering methods support this at all, or is this something I'd have to do manually? Also, is it possible even in theory on Android 2.3, or is it known that a newer version of Android will enable it?
Thanks.
a year later...
http://dan.drown.org/android/clat/index.html

Android OS + BIND9 dns on local server

Hi All,
I don't know if it is the proper thread for this, but I've installed a local webserver (CentOS) with BIND9 dns (named) and what is annoying me that my android devices don't resolve the server address. They can only connect through the IP of the server.
Windows pc and iOS devices do resolve the server name.
Devices connect to the server through a wireless AP that is also a DHCP. DNS address is distributed through the AP's DHCP.
Any ideas? Or any workaround for this? The main goal is to reach the local server by its name, so if you guys know an app other than a DNS server I would be grateful for some help.
Thanks a lot
Greg
did you use static ip address and custom dns in advance settings on your android handset? if yes your android should lookup for dns server. anyway maybe, i could be wrong, port 53 is being used for other apps or closed in iptables on your android hanset.
cheers hope it could help
vertrag said:
did you use static ip address and custom dns in advance settings on your android handset? if yes your android should lookup for dns server. anyway maybe, i could be wrong, port 53 is being used for other apps or closed in iptables on your android hanset.
cheers hope it could help
Click to expand...
Click to collapse
Thanks for the quick reply.
The ROM I use is one of Ficeto's base ROM. I9100XXLPQ with supercore kernel. The thing is, in advanced wifi configurations I don't have the possibility to set DNS. DNS information is not even displayed. I only see the IP and I don't have the possiblity to edit it neither. It is something that should be available in all roms or is it just my current rom?
I have no idea if there is something that uses the port 53, but when I connect to my DSL router I can browse the internet. So I assume the DNS in this case should work correctly.
Thanks a lot
Greg
Someone, move this question to Q&A thread..
yes if ur able to browse di internet normally then the dns query look up is fine.. what i nean by port 53 is the port that dns server and client use to communicate each other. take a look of my screenshot im able to change the dns..
Sorry for having posted in the wrong thread.
Well I don't have the same settings available in my current ROM. But I installed a third party app from Play to set the DNS and even if it is displayed correctly in the 3rd party app settings, it doesn't resolve the server's address.
I guess there is nothing else left but to use a packet sniffer (wireshark) to see whats going on between the android's browser and the server.
Will get back with the results.
Thanks
Greg
Greg767 said:
Sorry for having posted in the wrong thread.
Well I don't have the same settings available in my current ROM. But I installed a third party app from Play to set the DNS and even if it is displayed correctly in the 3rd party app settings, it doesn't resolve the server's address.
I guess there is nothing else left but to use a packet sniffer (wireshark) to see whats going on between the android's browser and the server.
Will get back with the results.
Thanks
Greg
Click to expand...
Click to collapse
Did you check the value of property net.dns1? If not just enter
Code:
getprop | grep net.dns
in an ADB shell. The value of the property net.dns1 should be set to the IP address of your DNS server.
If this is not the case just enter
Code:
setprop net.dns1 <your DNS server IP address>
for testing and try to ping one of your internal servers by name. It should work now.
Hi all,
Problem is solved. On a local network you must define the gateway in the DHCP so that the android device sends both IPv6 and IPv4 queries to the DNS server. If it is not defined it sends only IPv6 queries and doesn't fall back to IPv4 when that fails.
Thanks for your help
Greg

need vpn application with udp Protocol

sorry if this kind of post is not allowed ...I need some vpn application which uses udp Protocol to connect like DROIDVPN. I searched a lot. but didn't found any except droidvpn..so can anyone give me some vpn application which uses udp Protocol?
tanvir108115 said:
sorry if this kind of post is not allowed ...I need some vpn application which uses udp Protocol to connect like DROIDVPN. I searched a lot. but didn't found any except droidvpn..so can anyone give me some vpn application which uses udp Protocol?
Click to expand...
Click to collapse
I don;t understand UDP protocol but I know Hotspot Shield is a good vpn Android app

USB Tethering between android devices

Hi,
I've been trying for some time to share an internet connection between an android phone (tried with several phones) and an android Tablet (Samsung Active Tab 2).
Rooted the tablet (after some very long research) and tried the following methods:
1. Connect two devices with OTG connector, turned on RNDIS and configured both rndis0 interfaces to be on the same network (different IP addresses ofc) - no ping, nor udp messages (using a UDP Sender\Receiver app) go through.
2. Tried creating a VPN server on the host device (the one providing internet) which creates a tun0 interface that listens to the rndis0 interface - Could not connect to server.
3. Used "Easy Tether Lite" on both devices and managed to share internet, but limited to the Lite version which allowed the use of HTTP only - This shows that it can actually be done using only a USB cable and OTG adapter.
Would appreciate some help with this matter.
Thank you all,
EDIT: Was thinking this may be done using a different Ethernet interface instead of RNDIS. Any ideas?
Shedaim said:
Hi,
I've been trying for some time to share an internet connection between an android phone (tried with several phones) and an android Tablet (Samsung Active Tab 2).
Rooted the tablet (after some very long research) and tried the following methods:
1. Connect two devices with OTG connector, turned on RNDIS and configured both rndis0 interfaces to be on the same network (different IP addresses ofc) - no ping, nor udp messages (using a UDP Sender\Receiver app) go through.
2. Tried creating a VPN server on the host device (the one providing internet) which creates a tun0 interface that listens to the rndis0 interface - Could not connect to server.
3. Used "Easy Tether Lite" on both devices and managed to share internet, but limited to the Lite version which allowed the use of HTTP only - This shows that it can actually be done using only a USB cable and OTG adapter.
Would appreciate some help with this matter.
Thank you all,
EDIT: Was thinking this may be done using a different Ethernet interface instead of RNDIS. Any ideas?
Click to expand...
Click to collapse
hello,
I'm facing the same situation. I had the idea that option 1 should be easy but not.
The phone detect the tablet device and let me to activate the function "USB tethering" but nothing change on the tablet, impossible to navigate or ping.

Categories

Resources