[Q] Google Now voice search firewall issue? [SOLVED] - Samsung Galaxy Nexus

If I try to use Google Now's voice search on the wifi at work, all I get after it listens to me speak is "Recognizing..." for about 5-10 seconds, then it just goes back to "Tap mic to start speaking." If I do this on cellular data, or my wifi at home, Google Now works fine, which makes me think this is a firewall issue at work. Anyone found any information yet for this new service yet about required ports or the like?
Cell reception is spotty in my building at work (that's why I use the wifi there), so I'd love to figure out the issue.

definitely a firewall issue
An update: I just put my GN on a subnet that has all ports open and Google Now's voice search worked fine. Put it back on the DHCP subnet, and were back to failure.
Anyone else seeing this?

more info
FYI: It's getting stuck on "Recognizing..." even though I have offline voice recognition installed. Obviously, searching won't work without internet access.

I ran into this too, on our work network (where we block almost everything). Works fine at home. Did some sniffing on our firewall and found that my phone was trying to connect to 74.125.142.192 (ie-in-f192.1e100.net - which is Google) on port 14259. I added a rule to our firewall to the connection and now Google Now works perfectly. I have nothing to confirm this is the exact IP and port it will always use, though. I'll keep testing it to see if it stops working.
Interestingly enough, when testing I found that if I left the phone on "Recognizing..." long enough, it eventually worked. I wasn't capturing packets at the time so I couldn't see how it did that.
I'll update if I find any new info...

628
Thanks! Opened that port and voila - voice search is fine now. Thanks!

Confirmed for me as well, and it took awhile and I needed to open up a few more ports.
Destination ports are 5228 and 14259, so I just put the whole range in.
5228:14259
Google server IP's are:
74.125.142.192
173.194.74.192

5228 is needed for push notifications from Google services. I think you could get away with only opening the two ports you mentioned. I do and everything seems to work.
Sent from my Galaxy Nexus using xda app-developers app

My firewall is blocking on port TCP 14259 to a slightly different IP address of 74.125.132.192 which resolves to wb-in-f192.1e100.net
I am accessing the service from the UK.

chugger93 said:
Confirmed for me as well, and it took awhile and I needed to open up a few more ports.
Destination ports are 5228 and 14259, so I just put the whole range in.
5228:14259
Google server IP's are:
74.125.142.192
173.194.74.192
Click to expand...
Click to collapse
Never ever create firewall rules for ip address ranges, unless those ranges are on a private network and you can guarantee exactly where they go. Google, like many major corporations, provides hosting services, and due to this, simply because an IP is registered to Google [or any other corporation], it does not mean it's actually Google who's using it.
The best practice is to allow host names only (urls) when creating firewall rules (most often by wildcard variables - i.e. the asterick * - https://*.googleapis.com for example). IP addresses are dynamically assigned, so just because a specific connection at a specific time resolves to 74.125.142.192 does not mean it will resolve to that IP tomorrow, let alone 10 minutes from now.

Related

[Q] VPN on Rhod 100 TP2

I have the latest Froyo6 build on my Froyo TP2 Rhod_100 UK
I have been trying to set up the VPN, but I can not get it working. Does anyone know why and how I can sort this out please?
PS. I also tried to run a VoIP (SIP) client (3CX) on the machine, but that too does not work.
My airtime provider is Vodafone UK and they have assured me that both are enabled on my account at a princely sum of £15 per month! Needless to say at that cost I am dead keen to make this work.
jonners59 said:
I have the latest Froyo6 build on my Froyo TP2 Rhod_100 UK
I have been trying to set up the VPN, but I can not get it working. Does anyone know why and how I can sort this out please?
PS. I also tried to run a VoIP (SIP) client (3CX) on the machine, but that too does not work.
My airtime provider is Vodafone UK and they have assured me that both are enabled on my account at a princely sum of £15 per month! Needless to say at that cost I am dead keen to make this work.
Click to expand...
Click to collapse
Can you get either to work on wifi?
I know there were some Chinese users trying to get the VPN to work, and couldn't.
I haven't tried, as I have no use for a VPN on my phone lol.
Also, I have known people to get SIP working, but it wasn't so great from what I heard...
Sorry I was not getting alerts and the thread was not showing up in my subs....
If I use WiFi then I am at home and do not need the VPN, but the SIP Phone DOES work and very well.
If I use the WM as a gateway for my laptop, then the laptop can run a VPN and SIP Phone via the phone. If that makes sense to you. Thus the Router running the VPN is working and the config works, and the mobile operator has set up the service. So this is just the phone settings - I believe.
jonners59 said:
Sorry I was not getting alerts and the thread was not showing up in my subs....
If I use WiFi then I am at home and do not need the VPN, but the SIP Phone DOES work and very well.
If I use the WM as a gateway for my laptop, then the laptop can run a VPN and SIP Phone via the phone. If that makes sense to you. Thus the Router running the VPN is working and the config works, and the mobile operator has set up the service. So this is just the phone settings - I believe.
Click to expand...
Click to collapse
If I had a VPN I could connect to I would test it out...
Maybe its a misconfiguration in Android? broken driver or config?
I do not know. It tells me nothing. The settings are as per the router config. How do I find out what is incorrect/broken etc...?
Can you give as many details as possible on the type of VPN I'm trying to connect to?
It's probably not working because none of the devs use that function - and can't debug it without trying to reproduce your setup.
I might play with it a little as it would potentially let me remotely schedule MythTV recordings safely, but it would be pretty low-pri for me.
I am using at this stage a simple PPTP setup for now. The Android settings are minimal - username and PW, and that is it.
But my laptop, which works has more settings o configure. I.e. MSCHAP and MSCHAPv2
Point to point MPPE
Security 128b and/or 40b
Allow BSD
Allow Deflate data comp
Allow TCP header comp
Does this help
OK, sometime in the next week or two I'll try to get PPTP up and running using similar parameters. I've been meaning to do it in general (not phone-related) for other reasons anyway - but it's been a low priority for a long time.
Entropy512 said:
OK, sometime in the next week or two I'll try to get PPTP up and running using similar parameters. I've been meaning to do it in general (not phone-related) for other reasons anyway - but it's been a low priority for a long time.
Click to expand...
Click to collapse
Why not OpenVPN? Seems like it would be easier/more standards-compliant that a craptacular PPTP VPN .
arrrghhh said:
Why not OpenVPN? Seems like it would be easier/more standards-compliant that a craptacular PPTP VPN .
Click to expand...
Click to collapse
I'll look into what VPN options Android supports - although for the OP, he may have specific reasons forcing PPTP.
arrrghhh said:
Why not OpenVPN? Seems like it would be easier/more standards-compliant that a craptacular PPTP VPN .
Click to expand...
Click to collapse
Because I am working with Draytek, my router. Vendor to set up the VPN and this was the. First config as it was the simplest. Seems everything else works, just. Not the. Phone. The phone too has PPTP as a standard setting.
Eh, I prefer to avoid PPTP like the plague if I have any choice. Most companies don't provide a choice, so I figured that's why you were locked in.
If you do have a choice, I would try something different. That's just me tho, I'd prefer open to closed any day if I had the choice .
Just a side note - the built-in Android VPN support uses pppd. The ril currently uses "killall pppd" to disable mobile data. If you're using both at once, then this will kill the VPN too. This is a stupid flaw in the current ril code, which is fixed in the "initpppd" branch of my ril repo. (But the initpppd branch depends on a number of rootfs fixes before it is usable, and stinebd has not merged any of it yet.)
highlandsun said:
Just a side note - the built-in Android VPN support uses pppd. The ril currently uses "killall pppd" to disable mobile data. If you're using both at once, then this will kill the VPN too. This is a stupid flaw in the current ril code, which is fixed in the "initpppd" branch of my ril repo. (But the initpppd branch depends on a number of rootfs fixes before it is usable, and stinebd has not merged any of it yet.)
Click to expand...
Click to collapse
Thanks for the reminder of that, I remember the discussions on the dev list.
I'm going to shelve poking at the VPN stuff until the RIL overhaul stabilizes and gets mainlined in this case.
Entropy512 said:
I'll look into what VPN options Android supports - although for the OP, he may have specific reasons forcing PPTP.
Click to expand...
Click to collapse
OK, please excuse slowness of response. As arrghh knows from another thread I am in transit across Europe. I reached my destination, Italy and have spent the past few days getting internet access *broadband virtually does not exist here unless you are in a City, so I have to use a very slow mobile broadband).
I am not a techie, but I am a willing player with some knowledge - dangerous, I know. I have been assisted by the manufacturer of my Router, a Draytek 2820 to set up a VPN. We may make it a more sophisticated VPN later, but pptp is the easiest. I have it working on all laptops and PCs, including this old banger here in Italy. What I can NOT do, is get it working on the phone. I think it is communicating with the router, but it is not getting through.
PS the PCs and Laptops are all Linux - Ubuntu 10.10
Hope this helps
I'm one of those Chinese who tried using VPNs on my Raphael, but failed of course. Actually, neither on WM, nor on Android, neither via pptp, nor via l2tp over ipsec. What I wanna remind is VPN on most Android roms on hd2 works fine, but some roms also cannot support vpn.
If you have enough time, I don't know how to pray for, would you please explore l2tp over ipsec? Because in many cities in China, pptp is also blocked by ISP. And I can provide a test account if anyone needs it.
Btw, I believe vpn is necessary when connecting a public wifi
Sent from my MSM using XDA Premium App
One more report, vpn in pptp could not work..
At this point - I'm going to hold off on poking at this until highlandsun's new RIL settles out and is officially committed. Some of the dev traffic correspondence indicates that the way we currently handle PPP is incompatible with VPNs. His new ril + rootfs combo that changes the pppd control architecture MIGHT solve some of the PPTP issues, I haven't tried them yet.
See it.
May your works come out soon~

Swann Security Remote View, Home WiFi Works, Mobile Data Doesn't

Hello all!
Recently I've purchased the Swann DVR8-1425 security system.
I've been able to connect it to my home network successfully. I can remote view the cameras through my T999L (no root, completely stock) on WiFi through the SwannView app, but as soon as I put it into mobile data, it shows me a message of not being able to contact the server. I'm assuming if I were at someone elses house on their WiFi, it would be the same result. Same issue on my Dad's S2, rooted, running Infamous 3.0 in the T989 forums.
I've messed with most, if not all the settings I can possibly use with trial and error. When it comes down to it, obviously there's only the one setting that works with my WiFi (the given IP address from the DVR and a server port given: 9000) and it won't connect with mobile data whatsoever (2g, 4g, or LTE). I've tried using HTTP port 85 instead of the 9000, a preferred DNS server in place of the IP address, turning on and off UpNp (not really sure what that does). Absolutely nothing. Server connection fail each time when using mobile data.
I've disabled the firewall in hopes of it working, but I've had no luck. Haven't reset the router, assuming I just unplug and replug but other than that, I'm out of ideas. Not sure what else I can work on besides the firewall, if that even does anything.
The Swann software installed on my Mac does work, but haven't had a chance to test it somewhere other than my home network. It could work, but I wouldn't know at this point. Just more concentrated on the mobile data issue.
My knowledge is small when it comes to this networking stuff. Connecting to a WiFi hotspot is about as easy as it gets for me lol. I just got lucky with trial and error for setting it up with the home network. Just wondering if anyone has experience with this or ideas that may come to mind. At the worst, I won't be able to remote view anywhere other than using my wifi, but it will still record at least.
Thanks in advance!
MyanRagahis said:
The Swann software installed on my Mac does work, but haven't had a chance to test it somewhere other than my home network. It could work, but I wouldn't know at this point. Just more concentrated on the mobile data issue.
Click to expand...
Click to collapse
^^^^^
Seems to me you should test the remote connection elsewhere before you start troubleshooting a problem thst may not even exist. If its not configured correctly to do what you want, its not going to work across the internet which would include the mobile data.
Make sure you can access what you want remotely, then test over mobile data. Unless I read that wrong it doesn't sound to me like you've done this. You can test the mobile data connection all you want, but if its not working remotely by any other means you will be wasting your time. (Unless you got lucky and configured it correctly, but as you said, youre not very experienced with this).
Until you verify it does work remotely, there's no reason to assume its your phone or T-Mobile that is the problem.
Tbh, I'd assume first it was a router config on your side. (Unplugging it doesn't reset its settings, and even if it did it may not be configured as needed by default.)
You'd probably find better support by going to the equipment website and router website.
Sorry I don't have the answer your looking for, but hopefully ill get you in the right direction.
Sent from my SGH-T999 using xda premium
DocHoliday77 said:
^^^^^
Seems to me you should test the remote connection elsewhere before you start troubleshooting a problem thst may not even exist. If its not configured correctly to do what you want, its not going to work across the internet which would include the mobile data.
Make sure you can access what you want remotely, then test over mobile data. Unless I read that wrong it doesn't sound to me like you've done this. You can test the mobile data connection all you want, but if its not working remotely by any other means you will be wasting your time. (Unless you got lucky and configured it correctly, but as you said, youre not very experienced with this).
Until you verify it does work remotely, there's no reason to assume its your phone or T-Mobile that is the problem.
Tbh, I'd assume first it was a router config on your side. (Unplugging it doesn't reset its settings, and even if it did it may not be configured as needed by default.)
You'd probably find better support by going to the equipment website and router website.
Sorry I don't have the answer your looking for, but hopefully ill get you in the right direction.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
After read this earlier, I facepalmed myself and went to go test this out. Drove over to Starbucks a few minutes ago, connected to their wifi through my phone and it didn't connect Hmm...definitely a router setting then. The dvr itself is connected to the router by an ethernet cable. Just a matter of figuring out how to configuring the router settings. Thanks!
Try bluestacks
Hey. I came across this page looking for a solution to a similar problem. My new swann system connects fine with my phone on Orange but wouldn't connect to my partners identical phone on Vodafone via mobile Internet. Both worked on wifi. I solved by asking Google for my ip address, then going onto the swannview link app, under my device is a button to edit, on the edit page where it has p2p if you tap the line it gives you another option to connect with ip, then enter your ip where it says host. Save details with icon in top right and log in. This solved my issue, hope it helps anyone with the same issue.
MyanRagahis said:
Hello all!
Recently I've purchased the Swann DVR8-1425 security system.
I've been able to connect it to my home network successfully. I can remote view the cameras through my T999L (no root, completely stock) on WiFi through the SwannView app, but as soon as I put it into mobile data, it shows me a message of not being able to contact the server. I'm assuming if I were at someone elses house on their WiFi, it would be the same result. Same issue on my Dad's S2, rooted, running Infamous 3.0 in the T989 forums.
I've messed with most, if not all the settings I can possibly use with trial and error. When it comes down to it, obviously there's only the one setting that works with my WiFi (the given IP address from the DVR and a server port given: 9000) and it won't connect with mobile data whatsoever (2g, 4g, or LTE). I've tried using HTTP port 85 instead of the 9000, a preferred DNS server in place of the IP address, turning on and off UpNp (not really sure what that does). Absolutely nothing. Server connection fail each time when using mobile data.
I've disabled the firewall in hopes of it working, but I've had no luck. Haven't reset the router, assuming I just unplug and replug but other than that, I'm out of ideas. Not sure what else I can work on besides the firewall, if that even does anything.
The Swann software installed on my Mac does work, but haven't had a chance to test it somewhere other than my home network. It could work, but I wouldn't know at this point. Just more concentrated on the mobile data issue.
My knowledge is small when it comes to this networking stuff. Connecting to a WiFi hotspot is about as easy as it gets for me lol. I just got lucky with trial and error for setting it up with the home network. Just wondering if anyone has experience with this or ideas that may come to mind. At the worst, I won't be able to remote view anywhere other than using my wifi, but it will still record at least.
Thanks in advance!
Click to expand...
Click to collapse
Fix
Hello..
I am also using Lorex wireless security camera for my home but till now I am not facing any issue because all configuration is performed by experts. But I have two fixes for your issue.
Either contact with Lorex Support Team for help or follow steps:
Check with your mobile data service provider to confirm if they allow streaming of constant information over their network.
Configure a lower substream video resolution in your DVR / NVR settings to reduce mobile data usage and increase your connection speed.
If you cannot connect to your cameras using an LTE or IPv6 connection, switch to a 3G connection.
If you are using a device ID through your mobile plan, set up a Dynamic Domain Name System (DDNS) to eliminate the need to pass through the Stratus / FLIR Cloud servers.
Hope it helps!

[Q] Wifi with captive portal keeps getting disconnected after 4.3 update

So our guest wifi network in office requires you to press an I agree button before connecting you to internet, and once you agree you're supposed to be good for 7 days. So once you connect - it redirects your first connection to captive portal, but if you have already agreed recently, it redirects you again automatically to the original webpage you were trying to go to - seamless user experience.
Samsung (with their infinite wisdom) introduced a behaviour in 4.3 that if it senses a wifi captive portal (by detecting redirection or not getting 204 return code), it immediately disconnects from the AP, and waits for the user to sign in (says "sign in required"). So everyday once I walk in, I need to do a manual connect to the wifi AP.
Is there any way I can disable this behaviour of disconnecting from an AP if captive portal is detected? I understand it redirects, but that only the first time, and eventually loads the intended page without further manual intervention.
Did you find out anything about this? I would love to know how to get around this also
Sent from my SPH-L720 using Tapatalk
kousik said:
So our guest wifi network in office requires you to press an I agree button before connecting you to internet, and once you agree you're supposed to be good for 7 days. So once you connect - it redirects your first connection to captive portal, but if you have already agreed recently, it redirects you again automatically to the original webpage you were trying to go to - seamless user experience.
Samsung (with their infinite wisdom) introduced a behaviour in 4.3 that if it senses a wifi captive portal (by detecting redirection or not getting 204 return code), it immediately disconnects from the AP, and waits for the user to sign in (says "sign in required"). So everyday once I walk in, I need to do a manual connect to the wifi AP.
Is there any way I can disable this behaviour of disconnecting from an AP if captive portal is detected? I understand it redirects, but that only the first time, and eventually loads the intended page without further manual intervention.
Click to expand...
Click to collapse
I found a program in the market called Wifi Portal Connect that seems to be a workaround. Haven't had a chance to try it yet
Sent from my SPH-L720 using Tapatalk
artiemd said:
I found a program in the market called Wifi Portal Connect that seems to be a workaround. Haven't had a chance to try it yet
Click to expand...
Click to collapse
Not sure if that'd work, because the O/S itself will disconnect from the AP. Such apps come into play after that. There's another similar program Wifi Web Login which stopped working because of this bug -- they documented the issue here: http://wifiweblogin.syslynx.co.uk/2013/12/samsung-43-compatibility.html
kousik said:
Not sure if that'd work, because the O/S itself will disconnect from the AP. Such apps come into play after that. There's another similar program Wifi Web Login which stopped working because of this bug -- they documented the issue here: http://wifiweblogin.syslynx.co.uk/2013/12/samsung-43-compatibility.html
Click to expand...
Click to collapse
Actually I have been using Wifi Web Login for the past 1 or more years with great success so I am very sad that it is not working now. It is a great program.
The program that I referenced above does not do the same thing as Wifi Web Login(which I have installed). This program claims to detect the disconnection that Samsung is enforcing and forces it to reconnect, giving Wifi Web Login (or similar programs) programs time to work.
I am at work right now and it definitely is working--I have been connected to work wifi every time I checked and I have been already logged into the work system, so this program did allow Wifi Web Login to do its thing.
Unfortunately I think it drained my battery. so it might not be a viable option in reality.
I hope a fix for this program comes soon.
It looks like my battery problem wasn't due to the program Wifi Portal Connect. I'm using it in combination with Wifi Web Login and all is well.
Sent from my SPH-L720 using Tapatalk

[Q] Networking issue in android 4.2.1 Galaxy Nexus

Hello,
i've come from this thread thread
I have a galaxy nexus running stock android 4.2.1 with a very peculiar problem. From time to time i have trouble accessing a certain website if i try from wifi or from mobile connection it doesn't matter. If i restart the device the website works without a problem. It was a very odd problem and kept bugging me so i tried to focus on finding the real cause. After a lot of try and error i managed to arrive at this situation:
I have at my disposal 3 different wifi networks (lets call the wifi-1,wifi-2,wifi-3) and mobile broadband connections.
after a reboot of the phone (just to have a clear state) if i connect to wifi-1,2 or mobile conn the website works OK. if i connecto to wifi-3 the site also works OK but then after i disconnect from wifi-3 and connect to any of the other wifi-1,wifi-2 or mobile conn it doesn't work anymore. If i connect to wifi-3 again it works fine on that network.
I've connected to the phone using connectbot and checked the ip address and different params. and i simply can't get a ping to that website. a similar website located in the same subnet but on a different IP still works.
So what could happen on the network layer on the phone to stop working the connection to a certain IP?
Where could i find some info about how to debug IP networking issues on android 4.2.x
PS: I control both the phone and the servers that i'm trying to reach and can't see any traffic coming from the phone on the server.
PS1: I couldn't reproduce the issue with android 4.2.2 only with 4.2.1 (i've also tested android 4.4.4 and couldn't reproduce) i've tested 2 different phones with 4.2.1 and the problem reproduces.
PS2: IPv6 is disabled on wifi networks
PS3: all networks use different ip address classes and the IP changes accordingly. i was able to reproduce the issue only with a specific website/ IP
I was hoping someone would have answered you here.
Let me ask you this. Can you do process of Elimination ?
Choose a different Web such as this site http://forum.xda-developers.com
Next Connect the phone to each network and the Data in turn. Each time, first wipe data to the Browser on your phone. Go to the website. See if it loads and interacts well. (Go to some forum or log in etc.)
Switch to the next network and repeat. Let me know how that goes.
Next find a computer and have it do the same thing with internet Explorer. Clear IE's cache data each time. See how that goes as well with this site as your test site.

Wi-Fi authentication - not working on GoGo in flight Wi-Fi service

OK, so I've got a VERY strange one for y'all.
First off, I had this problem on Nougat. That's what prompted me to follow instruction on here and upgrade to Oreo and try. Yeah, that failed too.
So right now I have no problems at all connecting to any Wi-Fi router at home, my friends, in-laws, etc. Even when we go to restaurants and connect, like Bob Evans, Denny's, etc. where it asks you to accept the terms of service.. no problems.. at all!!
The problem I have is on the plane. I fly 4-6 planes a week and the free Wi-Fi I have with T-Mobile has been a godsend in keeping up with work while in the air. Obviously, it's happening on every plane I fly. I can connect to the SSID, but do not get an IP address. I even bothered the guy sitting next to me once to disable his iPhone and let me connect using the IP addressing that his phone had to try. Nothing. I can ping the gateway, but not the DNS server. SO I resolved the URL for the login page to an IP and threw that in Chrome to try to pull it up. Still nothing. It's so infuriating!! I can open plenty of apps that shows the IP address that whatever router I'm connected to gives me, but for some reason I do not get one when connecting to GoGo. I've tried a different browser (firefox, opera and the Samsung browser). I've tried an incognito window to remove and possible cashed issues. I've tried forcing Google's DNS and OpenDNS, still nothing.
So, the next step.. try a different phone. Yup, works great. It's not an account issue. It's almost like my MAC address is blocked by all the routers on every plane?! That can't be. I carry this Moto Z2 Force and also my iPhone. Problem is, I wanted to try to connect my laptop via Bluetooth to my Z2 Force once it's connected to the GoGo Wi-Fi to get my laptop online, but I can't even get an IP to be able to connect to the router. You can't do that with an iPhone. If you can... a penny for your thoughts
What's worse, is I've contacted GoGo Wi-Fi's tech support chat. They are determined to tell me there's something wrong with the phone.
Can someone please help me figure this out? I used to work in an IT department for the state government, and I should be able to keep up with whatever you ask.
Thanks a TON in advance!!
Some specifics:
Moto Z2 Force (T-Mobile)
Rooted with Magisk (but had the issue when it was bone stock on Nougat)
Android 8.0.0
Baseband M8998TMO_20207.117.02.41R NUS
Kernel 4.4.78-perf-g6174029
Build OCX27
SSID of the affected network - gogoinflight
I'm flying 3 hops tomorrow and I can get you as much detail as you'd like, I just need to know what.
nothing!?

Categories

Resources