Mediatek Device - Unreachable over 3G - Android Q&A, Help & Troubleshooting

Dear all,
I am developing a connected object with a M2M SIM card. I have a private static IP APN so each sim card have its own static IP.
When I start the device, I am able to ping it from a remote server on the network. Everything looks OK. But after few minutes or hours, the device is not reachable anymore. It does not receive any packets from outside. But it still seems to be connected because when I type `netcfg` with ADB, connection is UP.
If I ping the server from device, it's working again, it looks like it "woke up" the 3G connection. But before the device initiate a connection it was completely unreachable.
This is really strange and it is device related because if I try same experiment with a Nexus 7, the device is always reachable.
So I guess Mediatek device must have some kind of idle mode: after few minutes/hours, the stop listening for packets from outside.
Any idea how to stop this? THANK YOU!

Related

S3 can connect to WIFI but no Internet

Hello everybody.
Since last saturday i'm testing a Galaxy S3.
I want to test if everything works properly before buying it.
I have some problems deling with the WIFI stuff.
I gave him a static IP (192.168.1.15), configured the gateway as the ip of my router (192.168.1.1),
the network class is 255.255.255.0 (network prefix = 24), the DNS points to the IP of the Router (192.168.1.1)
It connects without problems. form the S3 i can ping any device in my network and from other devices i can ping the S3.
I can connect to the configuration site of the router and from the page of connected devices i can see that the S3 is connected
with the correct ip and also the MAC adress is correct.
And for now everything is fine.
Problems raise up when i try to surf internet. The answer is always "Page not found"
If i open the browser and try to navigate to google] the answer is "Page not found". Same for any other site i try to connect with.
I cannot ping external adresses from the S3. Only the ones inside my LAN.
On the same LAN there are 3 laptops, 1 IPhone, 1 TV, NAS NETGEAR , home automation screen, all connected in WIFI.
All of them configured in the same way. (static ip, gateway=ip router, dns = ip router, network class 255.255.255.0),
And they all access internet without any problem.
The network is protected with WPA2/PSKey, encryption AES.
I tried to configure channel with WPA, WEP, without protection, but no changes.
The S3 connects to router but does not connect to internet,
I also tried to make it point to a public DNS 8.8.8.8. No WAY!
Works for other devices.
I tried to reset S3 to factory parameters, same thing i did for the router.
I reconfigured everything from scratch but no result.
I do not have any filtering based on IP or MAC adress on my Router.
I tried with DHCP, with reservation of IP adresses or without reservation. No change.
Other devices can access internet. S3 does not.
I have to say i'm quite desperate.
If you guys have some good ideas to solve or diagnostic the problem i would be grateful.
Cheers,
Fabio
I get that around my office as I walk around, I find that when I change AP in range my internet connection drops. I have to constantly disable/re-enable WiFi.
Even around my house, I have the handset to WiFi always on, yet when I wake up in the morning the internet connection is not working yet there is an IP. I couldn't be bothered to telnet to port 80 etc., but I hear that the Jellybean update will resolve this issue.
Same problem
nickzap said:
Hello everybody.
Since last saturday i'm testing a Galaxy S3.
I want to test if everything works properly before buying it.
I have some problems deling with the WIFI stuff.
I gave him a static IP (192.168.1.15), configured the gateway as the ip of my router (192.168.1.1),
the network class is 255.255.255.0 (network prefix = 24), the DNS points to the IP of the Router (192.168.1.1)
It connects without problems. form the S3 i can ping any device in my network and from other devices i can ping the S3.
I can connect to the configuration site of the router and from the page of connected devices i can see that the S3 is connected
with the correct ip and also the MAC adress is correct.
And for now everything is fine.
Problems raise up when i try to surf internet. The answer is always "Page not found"
If i open the browser and try to navigate to google] the answer is "Page not found". Same for any other site i try to connect with.
I cannot ping external adresses from the S3. Only the ones inside my LAN.
On the same LAN there are 3 laptops, 1 IPhone, 1 TV, NAS NETGEAR , home automation screen, all connected in WIFI.
All of them configured in the same way. (static ip, gateway=ip router, dns = ip router, network class 255.255.255.0),
And they all access internet without any problem.
The network is protected with WPA2/PSKey, encryption AES.
I tried to configure channel with WPA, WEP, without protection, but no changes.
The S3 connects to router but does not connect to internet,
I also tried to make it point to a public DNS 8.8.8.8. No WAY!
Works for other devices.
I tried to reset S3 to factory parameters, same thing i did for the router.
I reconfigured everything from scratch but no result.
I do not have any filtering based on IP or MAC adress on my Router.
I tried with DHCP, with reservation of IP adresses or without reservation. No change.
Other devices can access internet. S3 does not.
I have to say i'm quite desperate.
If you guys have some good ideas to solve or diagnostic the problem i would be grateful.
Cheers,
Fabio
Click to expand...
Click to collapse
I'm having the exact same problem, I'd really like to know if you were able to solve the problem.
Phoenix_Dean said:
I'm having the exact same problem, I'd really like to know if you were able to solve the problem.
Click to expand...
Click to collapse
Me too... Is anybody has solution for this issue?
Oh poor fellows ....try to add DNS manually according to your ISP...not add public DNS
Try forgetting the network and connecting again and make sure all the other devices are using different ip address
Sent from my GT-I9300 using xda app-developers app

[Q] WiFi - won't connect to a Netgear Powerline Adapter

I have had a Netgear Powerline Adapter system set up in my Bedroom (XAVNB2001) for the past year and a half, because the signal from my Cisco E4200 doesn't effectively reach up there. It has its own SSID, on the 2.4GHz band. It has been completely solid and reliable, and I use it all the time with my Verizon Samasung Galaxy Nexus (stock ROM 4.2.2), and Asus Infinity Tablet (stock ROM 4.2.1). My wife also used it without problem with her prior Motorola Droid 3.
But for reasons I can't identify, my wife's new Galaxy S4 won't connect to it. Also Stock ROM 4.2.2. Her phone sees the Adapter/SSID, and shows a strong signal when we're up there. I enter the passcode with the same encryption (WPA/WPA2 PSK) as I have on the other working devices, and it quickly goes to "Acquiring IP" but this never completes. It tries a couple of times, and usually ends up saying: "Network Disabled Because Internet Connection Is Slow." But it is not slow - works as fast with the other devices as when I'm connected to the Cisco downstairs near the Router. I have carefully entered the passcode (checking the box to show the characters to make sure I'm not putting in a typo) a dozen times.
There is no problem connecting her S4 to any other WiFi network we've encountered (to the Cisco downstairs directly, at my kids' houses, hotels, etc.).
I can't see any trouble-shooting steps to even identify the problem. Usually this is a no-brainer: you see the SSID, enter the passcode, and you're in. What could possibly be the problem here??
DLCPhoto said:
I have had a Netgear Powerline Adapter system set up in my Bedroom (XAVNB2001) for the past year and a half, because the signal from my Cisco E4200 doesn't effectively reach up there. It has its own SSID, on the 2.4GHz band. It has been completely solid and reliable, and I use it all the time with my Verizon Samasung Galaxy Nexus (stock ROM 4.2.2), and Asus Infinity Tablet (stock ROM 4.2.1). My wife also used it without problem with her prior Motorola Droid 3.
But for reasons I can't identify, my wife's new Galaxy S4 won't connect to it. Also Stock ROM 4.2.2. Her phone sees the Adapter/SSID, and shows a strong signal when we're up there. I enter the passcode with the same encryption (WPA/WPA2 PSK) as I have on the other working devices, and it quickly goes to "Acquiring IP" but this never completes. It tries a couple of times, and usually ends up saying: "Network Disabled Because Internet Connection Is Slow." But it is not slow - works as fast with the other devices as when I'm connected to the Cisco downstairs near the Router. I have carefully entered the passcode (checking the box to show the characters to make sure I'm not putting in a typo) a dozen times.
There is no problem connecting her S4 to any other WiFi network we've encountered (to the Cisco downstairs directly, at my kids' houses, hotels, etc.).
I can't see any trouble-shooting steps to even identify the problem. Usually this is a no-brainer: you see the SSID, enter the passcode, and you're in. What could possibly be the problem here??
Click to expand...
Click to collapse
You could try creating a static IP address using the MAC of the GS4 on your Cisco router. It sounds like it's authenticating, but unable to assign an IP for whatever reason.
Disable WiFi Multimedia (WMM) or the equivalent... BOOM! should work fine.
Also, if it's a MAC filter issue turn your MAC filtering off. If that is the issue your GS4 will connect instantly once MAC filtering is off.
Thanks for the replies.
I assigned a Static IP to the GS4 through the Router without difficulty. I then went to the GS4's settings for this SSID, changed it to Static IP, entered the assigned IP, kept the Gateway as 192.168.1.1, and changed the DNS settings to what is shown through IPCONFIG when I check my Desktop.
It now connected, but shows a DNS error when trying to go to a given website. So something funky is going on there. The phone shows a setting for "Network prefix length" and has a value of 24 - I've not encountered this before - should there be a different setting here?
There is no MAC filtering enabled, so that's ok.
"Disable WiFi Multimedia (WMM) or the equivalent" - where is this setting located? I don't see anything along those lines on the Phone, or in the Router's program??
DLCPhoto said:
Thanks for the replies.
I assigned a Static IP to the GS4 through the Router without difficulty. I then went to the GS4's settings for this SSID, changed it to Static IP, entered the assigned IP, kept the Gateway as 192.168.1.1, and changed the DNS settings to what is shown through IPCONFIG when I check my Desktop.
It now connected, but shows a DNS error when trying to go to a given website. So something funky is going on there. The phone shows a setting for "Network prefix length" and has a value of 24 - I've not encountered this before - should there be a different setting here?
There is no MAC filtering enabled, so that's ok.
"Disable WiFi Multimedia (WMM) or the equivalent" - where is this setting located? I don't see anything along those lines on the Phone, or in the Router's program??
Click to expand...
Click to collapse
I'm not sure about Eric214's suggestion, but it sounds like it could help. Regarding the static IP, if you set it on the router, the phone should pick it up automatically without you needing to enter it manually. After you set the static IP on the router, does the phone still hang on Acquiring IP? If you HAD to manually enter, you could plug in the DNS address coming straight from your router, or Google's open-dns of 8.8.4.4 and 8.8.8.8 (I think that still works.)
ttupa said:
I'm not sure about Eric214's suggestion, but it sounds like it could help. Regarding the static IP, if you set it on the router, the phone should pick it up automatically without you needing to enter it manually. After you set the static IP on the router, does the phone still hang on Acquiring IP? If you HAD to manually enter, you could plug in the DNS address coming straight from your router, or Google's open-dns of 8.8.4.4 and 8.8.8.8 (I think that still works.)
Click to expand...
Click to collapse
I tried it before, but tried it again - with the Static IP set up on the Router (using the "DHCP Reservation" option in the Router's program), and the Connection Settings on the GS4 for this SSID set to DHCP, all advanced settings at their default, it behaves the same way: Shows Acquiring IP, tries it twice, then shows the message I quoted above.
The Router remains set at Automatic Configuration/DHCP overall, with DHCP Reservation used to create a Static IP for this phone's MAC address. If this isn't the proper way to do this, let me know.
And with the Phone Settings for this SSID's WiFi set to Static IP, and the info entered as above, it quickly connects, but doesn't gain internet access.
It shouldn't be this hard. This is usually a no-brainer, as I first indicated. What is so different with this phone's WiFi setup??
I appreciate your input!
DLCPhoto said:
I tried it before, but tried it again - with the Static IP set up on the Router (using the "DHCP Reservation" option in the Router's program), and the Connection Settings on the GS4 for this SSID set to DHCP, all advanced settings at their default, it behaves the same way: Shows Acquiring IP, tries it twice, then shows the message I quoted above.
The Router remains set at Automatic Configuration/DHCP overall, with DHCP Reservation used to create a Static IP for this phone's MAC address. If this isn't the proper way to do this, let me know.
And with the Phone Settings for this SSID's WiFi set to Static IP, and the info entered as above, it quickly connects, but doesn't gain internet access.
It shouldn't be this hard. This is usually a no-brainer, as I first indicated. What is so different with this phone's WiFi setup??
I appreciate your input!
Click to expand...
Click to collapse
That sounds exactly right to me, and you're right that it shouldn't be that difficult. I've heard others report of miscellaneous routers that don't play nice with our phone. In this case, it's an AP, but that might still be the issue. I haven't personally experienced the problem, so hopefully someone else can chime in who has.
ttupa said:
That sounds exactly right to me, and you're right that it shouldn't be that difficult. I've heard others report of miscellaneous routers that don't play nice with our phone. In this case, it's an AP, but that might still be the issue. I haven't personally experienced the problem, so hopefully someone else can chime in who has.
Click to expand...
Click to collapse
Does anybody else have any ideas here?
I have also posted on Netgear and Verizon's forums, but am not expecting too much from either of these. I'm putting my money on the expertise here at XDA!
WMM is listed under the advanced settings of your router, it's not phone based but in your router. Disable it and return your other settings to normal and it should fix your problem.
Eric214 said:
WMM is listed under the advanced settings of your router, it's not phone based but in your router. Disable it and return your other settings to normal and it should fix your problem.
Click to expand...
Click to collapse
I'll have another look in the morning but earlier today I looked through every page of settings and didn't see anything that looked or sounded like this.
What section or function might you expect it to be found? What else might it be called?
Thanks.
Advanced settings in your router.
Basically, the 802.11n spec requires devices to support 802.11e (Quality of Service [QoS] enhancements for wireless LAN) in order to use HT (High Throughput) link rates, i.e. higher than 54 Mbps. (WMM is a subset of 802.11e that was created by the Wi-Fi Alliance as a stop-gap measure while 802.11e made its way slowly through the IEEE review process.)
The point is this is an issue for the GS4 as it's either firmware related or a Samsung issue they didn't realize they caused. Point being, if you have constant disconnects to your router, disabling WMM should make your connection "stick". At this point its what you may have to do until a firmware update for the router is released or Samsung releases an OTA update fix. Unless you're rolling 3+ devices at the same time streaming content you shouldn't have an issue running 54mbps. I stream full HD content to 2 devices at the same time with no lags or decompression issues at 54mbps.
As long as your phone has a static IP from the router there is no reason to set the DNS on the S4...the router does all the DNS routing for your devices. Hopefully that'll fix your DNS error issue.
Sent from my SCH-I545 using Tapatalk 2
OK - had another look at the Router settings, and found the WMM option in the QoS section. I somehow overlooked that yesterday. I'll try this out later today when I'm at home.
Eric214 - with respect to this WMM setting, I have a Panasonic SmartTV, and stream Netflix, Amazon Video, Vudu, etc. and can get the highest quality (1080p) through these. Is changing this setting going to impair throughput for this purpose?
chrishoyt2012 - after changing to Static IP, if I did nothing on the phone (that is, kept it at DHCP), it didn't fix the problem. I then selected Static IP on the phone, which necessitated inputting DNS. There were DNS server entries there by default, and these didn't work, so I manually changed them to my ISP's DNS that are used on my Desktop.
What should I be doing in this regard, other than what I have tried above?
Thanks!
Well, I disabled WMM Support, but nothing changed. It still failed to get an IP Address, same as I described in my original post.
No replies in the other forums either.
I'd really like to get this going - I'm also considering getting the S4, but this may cause some second thoughts...
I went into the Netgear Adapter's setup program, but couldn't fix the problem there either.
I tried different Channels, and a few other settings changes, but no joy.
There was a WMM setting there, but it was checked, and greyed out, so I couldn't try unchecking it even if I wanted to. I disabled WMM on the Router again, but this option remained unavailable on the Adapter's setup program.
I went into my Router, and deleted the IP address for the S4, to try and 'reset' it, but still no change. The S4 shows 'failed to acquire IP' every time.
Any other ideas?? I also tried my daughter's Razr HD, and it connected fine, just like the others. What is so different about the S4's WiFi connectivity??

[Q] Seems to be problem with DNS lookup in Android

I have purchased a Alcatel Onetouch Idol X+ very recently and I am facing this problem of slow DNS lookup when connected to WiFi. When I am using WiFi and trying to browse any website it always taking 20-40 seconds to start show up any content. Later I realized that problem is not there when I am using directly IP address of an website instead on domain name. So, this must be an issue with slow DNS lookup. I have tried setting google DNS servers (8.8.8.8 and 8.8.4.4) in WiFi connection setting, but it is of no help.
To crosscheck this I used 'terminal emulator' to ping any website, what is see is that, always for resolving the domain dame it take 15-20 second time, then ping continues normal, similarly when I use any website IP to pinged there is no such issue.
Interestingly I found that sometimes when I connect to wifi then restart the phone, after that all browsing works fine and fast, but as soon as I change WiFi to another connection or turn wifi off-on, then again problem start to appear.
I have checked with few other phone connected to same WiFi connection, those are not at all having any such issue.
Can any one please tell any solution to this??
Android version is 4.2.2,
WiFi connection (which I am using) speed is more than 10mbps.
-----------------------------------------------------------------------------------------------------------------------------------
This is exact copy of this post as suggested to me
http://forum.xda-developers.com/general/xda-assist/to-problem-dns-lookup-android-t2803047

Use Android phone as Internet gateway (Not WiFi hotspot)

Just wondering if it is possible to setup Android 4 phone as internet gateway without enabling WiFi tethering?
Use case:
Connect the phone to my WiFi home network.
Set phone in gateway mode (ipv4 forwarding?)
On any other PC in my home network set default gateway to phone IP
In theory Android at this stage would handle outgoing connections for that particular PC.
On the grand scale what I'm thinking about is this:
I have multiple phones that have unlimited 4g plans on them, every time I come back home, phone joins the WiFi network and starts acting as a gateway. On my main routing box (pfSense) I setup multiple gateways (for each phone) and a load balancer. So every time phone appears, gateway changes to UP state in pfSense -> Load Balancing is using that phone as well. When I leave my house, pfSense detects that gateway is unreachable -> removes it from list of load balancers.
Did you ever find a solution, this is exactly what I want to do.

Ways for organize direct persistent TCP/IP connection to Android device via Internet?

I need persistent SSH access to my Android device from Internet. There are many apps that can listen ports on device external IP, but main problem is that most of Russian (and, I think, many other countries) cellular providers (GPRS, 3G, LTE, etc) close all ports from external access, even if device have white IP address. So via cellular network there are no way directly connect to device, and I can get direct access device only via WiFi neworks.
I want find any way for organize persistent access to my device via static address and port. The way where I don't need to check current wifi ip address of each network and type it for give access, but use something stable like myphone.somehost.com:12345.
Popular way for this is organize SSH Tunnel via external ssh server with white IP address. I have the server and already try this way (SSHDroid app as SSH server with bind to localhost:2222 port; SSH Autotunnel app for organize tunnel), but the problem is with too slow reconnecting after Android device change IP address (got reconnect on cellular network, or swith to/from WiFi) - problem with establishing new connection can continue about 10-30 minutes - this is too long.
So the Question: Is there any way to organize stable direct TCP/IP access to custom port on Android device, that work normally and reconnects quickly on unstable network with often reconnects and switch wifi/3g network.
Programs like Airdroid and Webkey provide direct access to device via http protocol, and works good via unstable connection. But I need to connect via SSH and other open protocols, not via some web interface.
Murz said:
I need persistent SSH access to my Android device from Internet. There are many apps that can listen ports on device external IP, but main problem is that most of Russian (and, I think, many other countries) cellular providers (GPRS, 3G, LTE, etc) close all ports from external access, even if device have white IP address. So via cellular network there are no way directly connect to device, and I can get direct access device only via WiFi neworks.
I want find any way for organize persistent access to my device via static address and port. The way where I don't need to check current wifi ip address of each network and type it for give access, but use something stable like myphone.somehost.com:12345.
Popular way for this is organize SSH Tunnel via external ssh server with white IP address. I have the server and already try this way (SSHDroid app as SSH server with bind to localhost:2222 port; SSH Autotunnel app for organize tunnel), but the problem is with too slow reconnecting after Android device change IP address (got reconnect on cellular network, or swith to/from WiFi) - problem with establishing new connection can continue about 10-30 minutes - this is too long.
So the Question: Is there any way to organize stable direct TCP/IP access to custom port on Android device, that work normally and reconnects quickly on unstable network with often reconnects and switch wifi/3g network.
Click to expand...
Click to collapse
I've managed this thing in the past with:
A continuously running server with a static IP address running SSHd with the option "GatewayPorts on". Let's say the server is at ssh.example.com.
You have to run an sshd daemon on your Android device.
You can then run the following script on your Android device:
Code:
#!/system/bin/sh
REMOTE_HOSTNAME=ssh.example.com
FORWARDED_PORT=2000
while :
do
ssh -R " $FORWARDED_PORT:127.0.0.1:22" "$REMOTE_HOSTNAMEā€ "sleep 86400"
sleep 60
done
You'd have to change FORWARDED_PORT for every Android device and strange for authentication.
Once you have this set up you will be able to connect from anywhere by sshing to ssh to ssh.example.com port 2000.
Fif_ said:
Once you have this set up you will be able to connect from anywhere by sshing to ssh to ssh.example.com port 2000.
Click to expand...
Click to collapse
Fif_, thanks, I already try this way via SSHDroid and SSH Autotunnel, but after each disconnect (device change IP) I got lost connection abut 5-20 munites - new port forward cannot be established, because old session is still active and waiting timeout, and after 10-20 retries timeout is end and new ssh tunnel established normally.
If I decrease SSH timeouts to 5 seconds, I got very often disconnects and reconnects, that eats traffic and device battery. And after each disconnect I got dropped session on client side and need to connect again for continue working.
So SSH Tunnelling is bad way for non-stable and slow internet connection with dynamic IP address.
At now very popular is websocket protocol, that seems works well on bad connection and quickly restore session after disconnecting and changing IP (without aborting processes). But I can't understand how I can use it to proxy SSH session.
Murz said:
Fif_, thanks, I already try this way via SSHDroid and SSH Autotunnel, but after each disconnect (device change IP) I got lost connection abut 5-20 munites - new port forward cannot be established, because old session is still active and waiting timeout, and after 10-20 retries timeout is end and new ssh tunnel established normally.
Click to expand...
Click to collapse
You can mitigate that issue by checking that the reverse tunnel is up and running on the server.
If you create the following as checkssh:
Code:
#!/bin/bash
set -eu
while :
do
coproc nc localhost "$1" || exit 1
banner=''
read -t 30 banner <&${COPROC[0]} || exit 1
case "$banner" in
SSH-*) ;;
*) exit 1;;
esac
eval "exec ${COPROC[1]}>&-"
wait || :
sleep 30
done
Then change that line in the script I sent before:
Code:
ssh -R "$FORWARDED_PORT:127.0.0.1:22" "$REMOTE_HOSTNAME" "/path/to/checkssh $FORWARDED_PORT"
You should have much more luck keeping the connection up.
You may want to tweak timeouts to conserve battery.
Murz said:
If I decrease SSH timeouts to 5 seconds, I got very often disconnects and reconnects, that eats traffic and device battery. And after each disconnect I got dropped session on client side and need to connect again for continue working.
So SSH Tunnelling is bad way for non-stable and slow internet connection with dynamic IP address.
At now very popular is websocket protocol, that seems works well on bad connection and quickly restore session after disconnecting and changing IP (without aborting processes). But I can't understand how I can use it to proxy SSH session.
Click to expand...
Click to collapse
Have you thought about running an always-on VPN?
If say you run an always on VPN from your phone to a target machine, then with a little bit of iptables trickery you can achieve what you want.

Categories

Resources