[Q] USB Tether Passthrough - Nexus One Q&A, Help & Troubleshooting

Well, I've done some digging around and can't really find anything specific so I thought I'd ask..
The stock USB tethering built-in to Froyo & GB.. I was wondering if it was possible to use it for, let's say VNC?
I tried to connect in to a computer that was tethered to my phone using VNC.. But it didn't work, connecting out seems to be just fine but using my phone's internet to HOST the connection wasn't workin..
It's probably a Tmo port thing, but I was just curious if it was controlled with the app itself?

its most likely the way the tethering works, it sort of makes the phone act as a router at home works, it acts as the central point to your modem and then assigns everything behind it in its own network its own address. if you check the ip of the pc that is connected to your phone youre probably going to show 192.168 something. whatever tethering method youre using would need to incorporate some sort of port forwarding so you can direct the vnc traffic to the pc that is tethered to the phone. i use my phone to tether a bit while im out on the road and as you say, i can remote out a lot and quite freely, i cant see really if this would be reliable at all to connect into the pc that is tethered since the cell networks can go in and out and will probably pretty frequently change the ip address of the phone. ive never really kept track of my phones cell network ip...

Related

Internet sharing dilemmas...

This is a 2-part dilemma...
1.) is there a way to use my Wi-fi and data plan as a gateway for internet access with the computers in my home? I want to be able to turn on the Wi-fi, and the phone will become an access point and its internet connection comes from my data plan... I guess this can be done with a T-mobile G1.
2.) the way I do it now is that I hook it up via USB to a computer, and that works pretty well. Problem is, if I disconnect it via software function on the phone or just yank the USB plug out, I have to re-boot my phone before the internet sharing will work again. This gets annoying. Anyone else experience this and/or know if there's a fix?
Or am I just dumb and want everything on a silver platter?
are these computers connect in a network. I am sure it can easily be done by internet connection sharing just have all the computers connect to your pc for a connection.
I thought about doing that--basically an internet share to an internet share. That WOULD work, but I was hoping for something a bit simpler. i am not a hardcore computer user like I was back in the day where I had to have at least 3 computers running 24/7 in order to cope with life. LOL. I was hoping for a setup where I can just walk in the door from a crappy day at work, plug my phone into the charger where it gets its best signal, and just leave it there and the rest will take care of itself. I am close to being able to do that with my Xlink bluetooth cellular gateway. Once I am home, there's no reason why I have to carry my phone around the house, as my hard-wired phones in the house ring through my cellular and I can make calls from them
The other option is to quit being a cheap turd and get a $30/mo internet connection for my computers, which is faster than the EDGE service I get here at home. But I live alone and don't download big stuff anymore or play multiplayer games, etc
I think the concept in question is one that has been batted around here for some time: Can the Kaiser be used as an access point with an internet connection?
As far as anyone's been able to tell, no. The phone's wifi chip(or part of a chip that does wifi) would need to support AP mode (access point mode) where in it receives and routes multiple wifi connections' data between each other and the GPRS hardware. As far as anyone's been able to tell, the wifi capabilities in the phone are limited to single-connection only, so allowing multiple devices to connect (or even 1, unless the desired device can get internet via adhoc or bluetooth) is not possible.
You can use the WiFi connection sharing. What it does is take your EDGE or 3G connection and set your phone up as an "access point". I put that in parenthesis because it creates an "ad-hoc" network that only certain devices can detect and connect to. Ad-Hoc is a device to device network, where the normal is infrastructure mode. Also being the device it is, I'm not sure if it's going to be an intelligent network device, IE.. iTunes music sharing between local connected clients. But you can most certainly share your connection with your laptops or desktops if they have WiFi. I'll see if I can find the cab for you and post it here.
EDIT: Here you go... http://forum.xda-developers.com/showpost.php?p=4175565&postcount=90
Cool. I will look into that! I pretty much only have one computer running at a time these days, and the EDGE connection isn't all that fast to be sharing it among multiple computers anyway.
why...
Hi,
Not sure if i understand... why would someone use the "crappy" internet connection of a phone to get internet access to your home network...
It's 2009. Why not get a decent cable or DSL account
jeen said:
Hi,
Not sure if i understand... why would someone use the "crappy" internet connection of a phone to get internet access to your home network...
It's 2009. Why not get a decent cable or DSL account
Click to expand...
Click to collapse
$ 30.00 for your phone data connection + $ 45.00 for your home cable/DSL connection = $75.00 per month, as opposed to just $30.00 for both.
To some people $ 45 dollars a month is a lot of money to save no matter how slow the connection is.
I am no expert but I found this software here a while ago and really liked it. There is an older version that is legally free but the new one is pay, try the trial.
http://www.wmwifirouter.com/
-Max
jeen said:
Hi,
Not sure if i understand... why would someone use the "crappy" internet connection of a phone to get internet access to your home network...
It's 2009. Why not get a decent cable or DSL account
Click to expand...
Click to collapse
Or you're like me and cant get anything but satellite internet where I live, which is way more expensive. Yet I get 3G just fine =)
WMWifiRouter
I like WMWifiRouter pretty well. It drains my battery like crazy, but when I have my phone plugged in, it's okay. Without being plugged in, my battery loses about 20% over ten minutes. Also, the free version doesn't really come with any admin features. The router is public and there's no way to see who's connected. Other than that, it's great!

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?

[Q] MobileAP/X-Box Live Compatibility?

Hey guys, I'm a long time lurker, first time thread-starter, and I hope there is a simple solution to this.
This is more of a proof-of-concept question, and since the PS3 is capable of connecting to a tethering application I figured an XB could as well.
Recently, I updated my Captivate's ROM to the SREv1.3.1c (it was the ROM before he renamed it to Cognition). One of the added benefits was the addition of the Mobile Access POint, which is way better than PDANet in my opinion, but I digress.
Anyway, I've managed to turn the AP on and get it to connect to a PS3 with no issues and very little lag, which was awesome. However, the XBox is being a pain in the ***. i can go to my network connections on the XB, and my wireless attachment "sees" the connection just fine. It also connects and pulls both a IP and DNS server address. I even get 5 bars of great signal.
But when I run a XBL test, when it tries to connect to the internet it craps the bed and does nothing. Now, I've seen people get XBL to connect over similar tethering apps, even PDANet with its shaky connection issues, but I can't seem to figure this one out. As far as I can tell, maybe 3G has too high of a latency to be compatable, but I figured I'd ask the experts of XDA. Can anyone help?
Did I forget to say please or something? Any pointers?
Hey just wondering what is your configuration. like are you connecting with wi-fi from the phone, do you have a laptop to use? that is one of the easiest ways. or are you just usb direct into the console?
Well presently I'm using MobileAP which broadcasts a wifi signal that my laptop can pick up (it's how I'm typing this at the moment as well). It can be seen, like I said, but the XB won't get past the internet part of the diagnostic test.
I also had PDAnet installed a while ago so I know how to usb tether but couldnt get that to work on XBL either.

N1 - 5GHz Wifi?

Does the N1 have 5GHz wifi like the Samsung?
My home LAN is 5GHz only, so I don't disturb the neighbors with my video streaming.
No, 2.4 only...
Ugh.
OK so I turned on the router's 2.4GHz, but with broadcast SSID off. My N1 wouldn't even try to connect. So I turned on router SSID and it connects AES.
I do -not- want SSID broadcast on, as Windows machines' lazy active scan will find me. Sure they'll never get in, but I do not want broadcast on.
Has anyone succeeded in connecting with it off?
When I am connected wifi and open a website on the phone, does it go over wifi preferred over 3G?
I want to share the SD card with a machine on the LAN. What's the best way to do this? FTP? Reverse SSH tunnel? Is there a sshfs for Android? EDIT: NM on this one.
Yes, I remember connecting to a WiFi with SSID off, when I had Nexus.
It is pointless to keep SSID Broadcasting off. It is super easy to find your SSID anyway, and it causes all sorts of additional problems (like the one you are seeing above). Just keep the network secure and it makes life a lot easier.
http://www.howtogeek.com/howto/2865...hiding-your-wireless-ssid-really-more-secure/
http://blogs.technet.com/b/steriley/archive/2007/10/16/myth-vs-reality-wireless-ssids.aspx
Ok, but sure passive scanners like Kismet will still see me, however 90% of scans are done with an active scanner like Winduhs. Of course I'm using WPA2-AES, but I want to take every measure possible.
Now I find that whenever I have the phone connected to wifi, I lose -all- internet access. Just times out. 3G is still on and wifi is showing connected, but I can't get to websites. As soon as I turn off Wifi I can access the internet again through 3G.
With wifi I -can- access the wireless router's setup webpage from my phone, which tells me I am working through wifi, and I can remotely mount the phone filesystem on a LAN machine using sshfs, but I can not reach anything outside. Any idea why?
Does anyone know whether, when it's working right, it uses the wifi connection in preference over 3G?
The WiFi is ALWAYS preferred to 3G, which means - when you're connected to WiFi, all the internet traffic is routed through WiFi.
I don't understand then, why all data traffic stops to the outside when wifi is connected. The rest of my LAN gets outside fine, just not the phone.
If you can see LAN computers and exchange data with them - it's not the phone that's making problems. See if you have any restrictions in your router.
Oh FFS, my fault...
I set my IP statically for my LAN, and through some alert troubleshooting I found I can ping IPs outside but not DNs. I'd mis-set the DNS server in wifi settings. Now it works great!
I can now use sshdroid to mount my phone's filesystem on my LAN securely. Now, if I could only get it to wifi associate with beacon off...
It would also be nice to mount a filesystem on my LAN to the phone, although I consider the phone unsecure and question the wisdom of that, even with DroidWall running.
There is a market app that lets you connect to a hidden ssid
Sent from my Nexus One using Tapatalk
Cool, but Market is FCing on me. I did a complete reinstall of the newest MIUI.us, and now Market's FCing again. So can't install any Market apps.
As someone else said, turning SSID off is pointless. It's like taking the numbers off the outside of your house and thinking people driving by won't see your house sitting there.
Apparently you didn't understand what I said here:
Quantumstate said:
Ok, but sure passive scanners like Kismet will still see me, however 90% of scans are done with an active scanner like Winduhs. Of course I'm using WPA2-AES, but I want to take every measure possible.
Click to expand...
Click to collapse
If nothing else, please just respect my decision in this regard, or give valid proof that active scanners are not the preponderance.

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