Is it possible to preload wifi credentials onto a custom ROM? - Google Chromecast

So I'd like to get my chromecast working on the TV in our on-call room, but it seems impossible. I've tried spoofing the mac address using my Nexus 5 in order to get onto the network that uses a captive portal for logging in, and it got stuck on "connecting". I've tried using fqrouter, which has failed repeatedly for some reason (maybe problems with Lollipop?). I haven't figured out how to even begin trying to get the CC to connect to the WPA2 enterprise network. I unfortunately don't have a suitable wifi repeater on hand for trying out that approach and finally I'm not sure my cellphone's connectivity and monthly data allowance would be enough for the chromecast (I suspect not).
So what I'm wondering now is, is there any way to activate support for wpa2 enterprise and preload the credentials on a custom ROM?
If not, can you think of any other approach I haven't tried yet? :/
thanks in advance, any and all help appreciated

Alternatively, is it possible to send URL:s to the chromecast's built-in browser and maybe send javascript commands via those URL:s eg for filling in and submitting username and password?

Related

Remote Desktop

Hey all.
I've tried searching Google and the XDA, but I still can't seem to get my remote desktop to work.
I'm using the AT&T version (Fuze) and Windows XP Media Center Edition. I went through the steps on my PC to enable and allow RD in the system and firewall sections, and still keep getting the "Cannot connect" error message when I try and use RD on my Diamond. Any advice?
All stock ROM, progs, etc.
Thanks!
If it's anything like T-Mobile in the UK, Remote Desktop may be something blocked at the carrier.
I managed to get around it using an SSH tunnel. It's not actually as difficult as it sounds I describe what I did in this post:
http://forum.xda-developers.com/showthread.php?t=357009&page=2
Before that I'd try connecting to remote desktop through a wifi connection which you know allows RDP, just to make sure your cellular network is at fault. If it is, you could try complaining - some people on T-Mobile UK have had RDP enabled on their "standard" data contracts which aren't technically supposed to have it from what I have heard.
Hey, thanks for the tips.
I actually tried it on a WiFi connection and got the same result.
I'll try looking into your other suggestion, but aside from that, are there any other troubleshooting options? Thanks all!
See if another computer can remote into your computer. It might not be an issue with your phone.
I was able to connect using another computer in the house...they're not networked but using the same internet connection. Gonna try and have my cousin connect to my comp from his house when he gets home...but so far it doesn't seem like it's my computer...
Still need assistance.
Thanks!
try it without the router. u probably need port fordwarding.
You will also need either a static ip address from your isp or setup dynamic dns resolution (i.e dyndns.org). If you have a dynamic ip address the ip address of your router is issued by your isp every time you connect(not neccessarily a different ip every time, but it might be). As mentioned above you will aslo need to setup port forwarding on your router for port 3389 (default rdp port) to the ip address of the machine you want to remote onto.
Forgive me but...how do you set all that up?
I appreciate all the assistance thus far!
I couldnt get mine to work, so I forward port 5900 on my PC and use RealVNC (free/shareware)
Hello:
I'm also having problems getting my remote desktop to work. Been trying to connect since I picked up my Fuze on the 11th.
I have three different computers that I can successfully administer via my desktop. I've tried using 3G to connect, no success. I've tried using Wi-fi to connect, no success. I've used local computer names, IP addresses, properly forwarded ports --
It has to be a setting I'm missing on the phone. Any ideas? TIA
(and yes, I'm sorry, I know this is the Diamond forum, it's just the only thread I've found)

reverse tether, ad-hoc, on mac filtered network?

I have a rooted N1 with cyanogen 5.0.4.1 on it.
I'm studying abroad this semester, and the university I'm at seems to have done everything they could to prevent me from connecting my phone to the internet on their network.
There is a wireless network, but it doesn't reach my room, and there's a proxy; I haven't been able to get any of the various proxy apps to work with it, at all. On a somewhat related note, since moving to cyanogen I'm not able to connect to that network anymore (wpa enterprise, tls/pap/user+pass). No real loss, since it didn't work as I couldn't get the proxy going.
The rooms have ethernet, with a static IP and mac filtering, and of course the same proxy. In addition, on the wired network in the rooms you have to connect to a vpn in order get anything other than the school's intranet
With cyanogen's rom, I have been able to connect my phone to my computer's ad-hoc network by giving it the parameters (IP, gateway, netmask, dns), that were provided to me, but I can't download anything. My only guess as to why that's not working is their static IP/mac filtering combo is not playing nicely.
I haven't ever delved very deeply into networking type stuff such as proxies, ssh tunnels, etc, so these two ideas of mine could be completely unworkable, but what I've been able to come up with is:
1. Is there a way to have my laptop keep handling all the proxy/ip/vpn nonsense, and just route http data to and from my phone? I've never dealt with ssh or anything of that sort, but I run linux so it should be pretty trivial to get it set up on the laptop's side of the equation.
2. Failing that, I'm allowed to have 3 devices with 3 different mac addresses, each of which is given a separate IP address, so I give the people in charge of the network the mac address for my phone and get an IP address for it. Then, connect to my laptop's ad-hoc network, which is on IP #1, and go to the advanced wifi settings on my N1 and set up a static IP with IP #2. Does that work, at all? This of course doesn't account for the vpn at all, but if it does in fact work I'd then move on to that.
What a ****ing brain-buster. Goodluck!
As an update, I can use cyanogen's included tethering ability, in conjunction with ConnectBot, to ssh from my phone to my computer (got that working after a bit of work, and learned something new). However, when I try to set up port forwarding in ConnectBot, it doesn't work; I don't know which ones to forward, whether to choose local or remote, and if I try to forward something below 1024 it gives me an error because of that. Does anybody know what ports I need to forward, and how to do that properly with ConnectBot?

802.1x

Why Google you no like college students?
Hmmm this probably raises a good point, it's a bit hard to implement something like 802.1x though on a streamer device (where authentication is required per login of network prior to you having the ability to control the device).
I don't see this coming for awhile to be honest unless someone manages to hack it in - I just can't see Google releasing the ability to cache 802.1x network credential sets unfortunately due to the security implications.
Friend of mine had to buy his own router to plug in to the colleges ethernet ports in the dorm. Solved a variety of issues they were having.
Sent from my Nexus 5 using Tapatalk
fchowd0696 said:
Why Google you no like college students?
Click to expand...
Click to collapse
Beyond the lack of keyboard/interface, large networks in general fear multicast and UPnP because they have potential to easily clog the network.
Also remember that Chromecast in its current state has little security - it's designed for use within a trusted environment.
You probably don't want to be in the middle of Twilight with your girlfriend and suddenly your Chromecast switches over to SpongeBob SquarePants because someone else in the dorm decided BobsChromecast obviously wants to show SpongeBob...
Having your own router and local network will isolate your Chromecast to just your little piece of the campus network, though double-NAT might be an issue, and you should check with campus policy on use of personal WiFi router/AP hardware.
I've got a similar problem. I use a studentnet, were I can either plug in directly into the wall and log in once every day or setup a router with a PPTP-connection to automatically log into the student-network. I've got the latter set up and it works like a charm.
Thankfully I had a rootable CC so I could set it to use my ISP's DNS but I would love if it if I were able to use a different DNS (aka Unlocator/Unblock) to enjoy the US-version of Netflix, but every time I change the DNS-servers my internetconnection dies.
Is there any way to actually do fix my problem? I know this is more of a network-question than a CC-one, but CC is included in the problem
I use a Netgear WNR3500LV2 as my router.
Sent from my LG-D802 using Tapatalk
ninepoint said:
I've got a similar problem. I use a studentnet, were I can either plug in directly into the wall and log in once every day or setup a router with a PPTP-connection to automatically log into the student-network. I've got the latter set up and it works like a charm.
Thankfully I had a rootable CC so I could set it to use my ISP's DNS but I would love if it if I were able to use a different DNS (aka Unlocator/Unblock) to enjoy the US-version of Netflix, but every time I change the DNS-servers my internetconnection dies.
Is there any way to actually do fix my problem? I know this is more of a network-question than a CC-one, but CC is included in the problem
I use a Netgear WNR3500LV2 as my router.
Click to expand...
Click to collapse
First question is whether you can use a different DNS at all (or whether your ISP is blocking somehow).
Try doing a DNS lookup from another server on your phone/tablet via Ping & DNS or another app that lets you do that.
If that's successful, then it might work - go to the Eureka-ROM web panel at http://Chromecast_IP_addresss/ and turn off DHCP-supplied DNS, Apply, then select another DNS.
You will also need to force your phone/tablet to use the same DNS - otherwise your phone/tablet may be making requests from Mars, while Chromecast tries to retrieve stuff from Venus.

Wifi Issue with Nexus 6

I have been doing research on this and it turns out that the Nexus 6 had issues with corporate wifi on 5.0. Corporate wifi is just wifi that requires a username and password to access if you do not know and this is the kind of wifi my college uses. Well hoping this problem would be fixed with 5.1 update I got the update and am still having the same issue it verifies the network but only says saved never connects however many tries it does its just a huge loop and this is getting very annoying. I dont know if there is something I should try to resolve this problem or will just have to stick it out until google addresses it. If anyone knows more about this issue please inform me because I have reached a wall with my research on this issue.
Yeah, ever since I updated to 5.1 I haven't been able to connect either, and I try through the Xpress Connect app like and it never works. I had been able to connect normally when I was on 5.0.1 before.
ItsRhody said:
I have been doing research on this and it turns out that the Nexus 6 had issues with corporate wifi on 5.0. Corporate wifi is just wifi that requires a username and password to access if you do not know and this is the kind of wifi my college uses. Well hoping this problem would be fixed with 5.1 update I got the update and am still having the same issue it verifies the network but only says saved never connects however many tries it does its just a huge loop and this is getting very annoying. I dont know if there is something I should try to resolve this problem or will just have to stick it out until google addresses it. If anyone knows more about this issue please inform me because I have reached a wall with my research on this issue.
Click to expand...
Click to collapse
Hm, my cable company offers local WiFi and I've been able to connect to their userid/password-required routers, then use their network. Did this just a couple days ago when signal in a particular store was really hampered.
Maybe it depends on the particular router and/or configuration they use?
- ooofest
We had to update firmware on our corporate router for the problem to go away.
See my post here for more details: http://forum.xda-developers.com/showpost.php?p=59682044&postcount=12
LEAP authentication.
Try installing the hydra kernel.
I use it along with meanpop and have no problems connecting to LEAP
ooofest said:
Hm, my cable company offers local WiFi and I've been able to connect to their userid/password-required routers, then use their network. Did this just a couple days ago when signal in a particular store was really hampered.
Maybe it depends on the particular router and/or configuration they use?
- ooofest
Click to expand...
Click to collapse
By username and password I meant one that the company or school gives you individually its not the kind of regular router login because at home I connect no issues but its the school wifi they even checked my account to make sure I wasnt blocked out of it and I was not. My fault for not being specific in the original post.
In my case N6 was able to connect to one password protected SSID without an issue, the subnet associated with this SSID is dedicated to provide internet access only.
The SSID N6 was having problem to authenticate with, was another SSID, whose subnet is bridged to provide access to both internet, and to corporate network.
According to Dell support, the Sonicwall router was failing to authenticate a connection coming through a bridged interface. I guess, N6 and/or Android 5.1 implements something new vis-a-vis authentication, that an older SonicWall firmware was not designed to deal with.
Immediately after SonicWall firmware update the problem was resolved.
Just wanted to chime in on this one... We have a corporate Wi-Fi as you describe (each user has a separate logon to the network) and I've not had any problems with Lollipop, 5.0 or 5.1. Not very helpful for you, but at least now you know it can work...

Setting up chromecast without WiFi

So I'm in the army right now, which means there's a TV but no WiFi available.
I did think of just setting up a Hotspot with another phone but it gets pretty annoying having to have 2 people at all time.
So I went digging in the Internet and found someone at a random forum (can't find it now for credit..), that said that If you set up the Hotspot in your own phone and configure it with another one you don't need the other one around anymore - being the Hotspot works as being connected to it.
Now I'm pretty sure there shouldn't be any reason I couldn't set it up on my own phone (the hotspot), except the Google home app just demands I connect to the WiFi network, which I can't do because you can't connect to yourself sadly.
I think if someone made some changes to the Google home app, or made an alternative set up app it could work. I have no idea how to code an app, so I came here ?
tl:dr I Want an app that does the same as the home app for setting chromecast up, but without checking if I'm connected to a WiFi network. (I think)
I'm guessing that you have no WiFi but you do have a hard line internet connection?
The only issue with what I'm going to suggest is that base rules may prohibit creating a WiFi access point on any of their hardline connections.
But the best solution for you is to buy a Portable Router (see posts here about using CCast in a Hotel).
It's a small box about the size of a DC transformer that plugs into the outlet and also any Network to create a small footprint WiFi access point.
I suggest looking for a model that also has Repeater mode that allows it to connect to another WiFi access point to create your own private network as opposed to a hard line.
It is probably the best way to use a CCast in places where WiFi is not available without having to play with Phone Hotspot which doesn't always work due to the fact the hotspot can't control the CCast in that mode.
The other Option that is most likely to be allowed is to add a WiFi puck to your Mobile account. Then there would be no potential compromising of the Military network (which is why they might not allow the Portable Router to be used) and you would no longer need two phones to run the CCast.
CCast definitely needs Internet so that Puck might be the safest and best way forward for you.
As for what you read...The issue is that if the Phone goes out of range it stops working.
Asphyx said:
I'm guessing that you have no WiFi but you do have a hard line internet connection?
The only issue with what I'm going to suggest is that base rules may prohibit creating a WiFi access point on any of their hardline connections.
But the best solution for you is to buy a Portable Router (see posts here about using CCast in a Hotel).
It's a small box about the size of a DC transformer that plugs into the outlet and also any Network to create a small footprint WiFi access point.
I suggest looking for a model that also has Repeater mode that allows it to connect to another WiFi access point to create your own private network as opposed to a hard line.
It is probably the best way to use a CCast in places where WiFi is not available without having to play with Phone Hotspot which doesn't always work due to the fact the hotspot can't control the CCast in that mode.
The other Option that is most likely to be allowed is to add a WiFi puck to your Mobile account. Then there would be no potential compromising of the Military network (which is why they might not allow the Portable Router to be used) and you would no longer need two phones to run the CCast.
CCast definitely needs Internet so that Puck might be the safest and best way forward for you.
As for what you read...The issue is that if the Phone goes out of range it stops working.
Click to expand...
Click to collapse
Actually, no Internet at all, just mobile data, but since I got 15 gigs it's OK for me to use it.
exeLz said:
Actually, no Internet at all, just mobile data, but since I got 15 gigs it's OK for me to use it.
Click to expand...
Click to collapse
Then I suggest getting the WiFi puck and adding it to your data account.
Asphyx said:
Then I suggest getting the WiFi puck and adding it to your data account.
Click to expand...
Click to collapse
To be honest, it is a good idea but my I was mainly wondering if I could solve it via software which is both easier obviously and also I just wanted to know if it's actually possible since I thought of it and I wanna know if I got it right
exeLz said:
To be honest, it is a good idea but my I was mainly wondering if I could solve it via software which is both easier obviously and also I just wanted to know if it's actually possible since I thought of it and I wanna know if I got it right
Click to expand...
Click to collapse
Not really...All the hacks and such that people try simply don't work well due to the fact that the Phone can't really connect to the same subnet as the Hotspot. When you go into Hotspot mode you can't also connect to that hotspot internally because WiFi is no longer available to the phone.
Asphyx said:
Not really...All the hacks and such that people try simply don't work well due to the fact that the Phone can't really connect to the same subnet as the Hotspot. When you go into Hotspot mode you can't also connect to that hotspot internally because WiFi is no longer available to the phone.
Click to expand...
Click to collapse
That's why i suggested tempering with the app so it treats being a Hotspot as if u were with WiFi on connected to one.
Basically take off the check for being connected to WiFi.
exeLz said:
That's why i suggested tempering with the app so it treats being a Hotspot as if u were with WiFi on connected to one.
Basically take off the check for being connected to WiFi.
Click to expand...
Click to collapse
The issue isn't the app...It's the fact that the WiFi in your phone can only do one thing at a time....BE an Access Point or CONNECT to an access point.
It can't connect to itself as the radio can't do both things at once.
So when you go into hotspot there is no way to get on the same subnet as the hotspot with the phone.
Because there is no network adapter available to connect to it. It is too busy being an access point.
Basically going into hotspot turns the Phone into a router. A router the phone has no way to connect to. So you either need another device to connect to that phone router or find some other router with internet.
Which is what the Cellular Puck will give you.
Asphyx said:
The issue isn't the app...It's the fact that the WiFi in your phone can only do one thing at a time....BE an Access Point or CONNECT to an access point.
It can't connect to itself as the radio can't do both things at once.
So when you go into hotspot there is no way to get on the same subnet as the hotspot with the phone.
Because there is no network adapter available to connect to it. It is too busy being an access point.
Basically going into hotspot turns the Phone into a router. A router the phone has no way to connect to. So you either need another device to connect to that phone router or find some other router with internet.
Which is what the Cellular Puck will give you.
Click to expand...
Click to collapse
Like I said, once the setup is done, being the Hotspot is just like being connected to is. The app still doesn't recognize you're connected but if you're on the web the chromecast icon does pop up when needed, all the third party apps do recognize you as being connected.
All you managed to do with Google Home (which can't be edited by anyone but Google)on the second phone is connect your CCast to the Phone Hotspot for it's Internet. There is no way to avoid that setup....HOWEVER...
As long as you don't set it up to connect to some other Hotspot there is no need to run Home again, Just turn on Hotspot and it should reconnect.
It will even remember the password,
Accidental post
Asphyx said:
All you managed to do with Google Home (which can't be edited by anyone but Google)on the second phone is connect your CCast to the Phone Hotspot for it's Internet. There is no way to avoid that setup....HOWEVER...
As long as you don't set it up to connect to some other Hotspot there is no need to run Home again, Just turn on Hotspot and it should reconnect.
It will even remember the password,
Click to expand...
Click to collapse
Yea I know, but sometimes friends take it or something and it's a pain in the ass to explain everything, and even when I do it means I gotta reconnect at my end again which is annoying just thought someone could maybe find a solution that sounded really simple for me, guess not, too bad..
Thanks anyway!
Well trying to recode Home is a dead end....Android wouldn't even let you install it!
You guys should just chip in and buy the puck.
It will even let you use Tablets and Laptops as well as simplify the CCast use.
I know this is an older post; not sure if you are still interested. I read all the replies and not sure what to make of it as far as if anyone had a working solution or not. No disrespect to anyone, but I couldn't tell for sure so I'm posting a link to my solution which does work. The two important steps are included. One is using " other wifi" in the drop down list when searching for your hotspot. The second is enabling GUEST MODE.
https://forum.xda-developers.com/android/help/how-to-cast-screen-android-phone-to-t4032653
I’m trying something similar with a Chromecast 3rd gen and iPhone 5S (iOS 12). Main issue seems to be guest mode doesn’t work at all on any apps, and pretty much every solution i’ve seen to this results in guest mode being used for the eventual casting. If you have android or iOS 13 then ymmv.
The only solution i’ve found are workarounds, the obvious being
1) don’t buy a chromecast (it’s not much of a solution but hey it’s $30).
2) use a secondary device to cast.
3) use a tethered travel router, and this can be done with only a phone and mobile data for internet, but there’s a catch:
First i’d Recommend any router by GLi.net (cheapest “mango” router is about $20) as they support iOS and android and both WiFi and usb tethering.
Also, i’ve Tried using a WiFi hotspot on the phone, and it’s the same issue - no connection to the chromecast regardless of how. However... iPhones will allow you to create a hotspot using *only* cables usb tethering, so if you set the router up to *only* accept internet via cables tether (turn off WiFi/repeater tethering), then you can have both the chromecast and iPhone connect to the routers WiFi, whilst providing net access to the router (and WiFi network) from the same iphone’s mobile data via usb. Simple howoto:
Important: Turn OFF WiFi on the phone, and turn off hotspot.
Connect phone to router via usb, accept trust settings.
Turn on personal hotspot, you’ll get a message asking whether to use WiFi or just usb (andbluetooth if it’s also turned on). Select just usb/Bluetooth.
Wait until blue connection bar shows on phone (if not, make sure routers setup properly to gain net via usb tethering).
Now, turn on WiFi on the phone, and connect to routers WiFi.
Setup chromecast as normal, selecting to connect to routers WiFi too.
Note turning hotspot off and on again whilst WiFi is running will start a hotspot on WiFi and disconnect you from router WiFi, so you’ll always have to go through process of turning WiFi off, turn hotspot on, turn WiFi on.
So you can do this with the right router and a usb connection to phone. Or maybe android and working guest mode. Otheriwse, ...fire tv anyone?

Categories

Resources