Use wifi for LAN, 3G for WAN - Nexus S Q&A, Help & Troubleshooting

I'm developing a remote control app that will use wifi to communicate with my car stereo. The car stereo has ethernet, and I have the ethernet wired to a wireless AP in my trunk. This works great, but since the phone has a wifi connection, it wants to use it to reach the internet, which it can't do when my car is away from home.
What I'd like to do is develop a script that I can run to route LAN traffic through wifi, but WAN (internet) traffic through the cell data connection. I dug a bit into this issue, and found this suggestion, but it doesn't seem to work, even after adjusting the routing table with a default route through the rmnet0 interface and bringing up the rmnet0 interface with ifconfig.
It kinda seems like something in the OS is disabling the 3G hardware when wifi is active. Is that a known behavior, and if so, does anyone have any pointers on how I can circumvent it? I found this post where someone got working on a different phone. Can this be done on the Nexus S?

Bump.. anyone have any ideas?

Related

[Q] Share WiFi over bluetooth pan?

Hi,
Is it at all possible to share my smartphone/pocket pc wifi connection over BT?
The only threads I've seen relate to sharing cellular over Wifi (like turning your phone into an access point - not quite what I'm looking for
Any help would be much appreciated, thanks
mcwtrekkie said:
Hi,
Is it at all possible to share my smartphone/pocket pc wifi connection over BT?
The only threads I've seen relate to sharing cellular over Wifi (like turning your phone into an access point - not quite what I'm looking for
Any help would be much appreciated, thanks
Click to expand...
Click to collapse
I'm looking for the same thing, i think...
I want to share a internet connection like this:
wifi AP ----wlan----> htc touch diamond ----bluetooth----> PC
Is it possible?
Tnx
im too looking for this, I have a laptop with bluetooth but without wifi.
Anyone found anything?
Sharing Internet on Windows Mobile device, with BT clients
I am looking for this as well. I have a laptop with no WiFi, but with BT, and a WM6 HP 211 iPaq. I would like to connect the iPaq to the Internet using WiFi (easily done), then share the Internet connection through Bluetooth, with my WinXP SP2 PC.
I have paired the devices. For example, I can do ActiveSync synchronization via BT between my PC and the iPaq.
"Netwok Access" connection via BT between iPaq and PC seems OK as well.
Still, when I go to "Internet Sharing" on the iPaq, the "PC Connection" field shows only "USB", it does not show "BT PAN".
Can anyone help? many thanks in advance
Gail
WMWifiRouter can do Wi-Fi to USB, but not BT at this time. It is coming up, though.
It is meant for PocketPC though, though it can work on Smartphone the experience is not as good.
could be useful as a kind of repeater
Ive been looking for an app to turn HTC Fuze into a Wi-Fi repeater, but I have bluetooth on my laptop so this would in effect be a signal repeater for me. The bottleneck from wifi to bluetooth would be pretty heavy though Im sure.
ICS Control
I discovered an app that seems to be able to do what you are asking for and most every other network sharing combo you can imagine. Its called ICS Control. It would be great to have a repeater app.
Bluetooth connectivity drops when WLAN is on
Hi guys
I have an iPaq 210 that I'd like to use as a WiFi card for an WinXP SP2 PC.
Here's my problem, which often happens (not always):
1. I turn on Bluetooth on the iPaq
2. I connect the PC to the iPaq using the "Explore my Bluetooth Places" wizard, then "Connect". It says "connected". Then on the XP "Network Connections" window, it says "acquiring network address", and shortly after: "connected". PC's IP address: 192.168.1.125, default gateway (the iPaq): 192.168.1.6. In fact, I've setup this static IP address on the iPaq using the ICScontrol utility. Both computers see each other and ping works both ways. In other words, BT PAN is up and working.
3. Here's the problem: I then turn on the WLAN (Wi-Fi). When the WiFi connects, ping stops working. Then I can't get to the Internet from the PC using the iPaq. "Network connections" still says: "connected" on the BT PAN network.
When I disconnect the WLAN, BT ping starts working again.
What to do?
TIA
Gail
dont really know how to fix this
Re: Bluetooth connectivity drops when WLAN is on
Can this point the way? http://support.microsoft.com/kb/972305 ?
The problem is, that fix is for the system builder. Can someone suggest a registry setup or anything else?
damn, looking exactly for this
wanna use my touch hd with a bluetooth only netbook
hope someone can do it
btw, wmwifirouter seems the closest to do it
can do 3g to bt, but wifi only to usb
[]s
D2G wlan0 - bnep0
On the topic of reverse tether heRe
Ubuntu netbook and Droid 2 Global
Yes the 3g connection works, turn on wifi and
it seems to fall apart. I think there might be
some ip conflicts or I could use a bridge adapter
or something on my droid phone that is configurable,
maybe like br0 for an interface name.
sounds good to me.
what exactly happens when wifi is turned on
ifdown ppp0 ?
ifup tiwlan0 ?
thats exactly what appears to happen first ppp0 there and tiwlan0 not then, touch icon and run ifconfig -a again and it is now the opposite. All ifb interfaces unchanged..
both bnep0 and tiwlan0 on same subnet and have different ip, but tiwlan0 gets dhcp and bnep0 I believe is static.. A routing table could help.
Do I need to add new modules? can this be configured?

Open NAT for tethering xbox

I need some help, as I'm kinda clueless with networking. I have an Ubuntu desktop connected to the same monitor my 360 is. I can connect to xbl a few different ways.
1. With the d-link wireless gaming adapter, set to adhoc mode, connected to my wifi tether.
2. USB/wifi tethering the desktop to my phone and sharing the internet connection with the Ethernet port where my Xbox is plugged in.
I've used, wifi tether for root users, barnacle (which supposedly allows port forwarding), built in USB and wifi tether (I'm on cm7 nightly with an HTC glacier)
I've managed to connect, but NAT is set to strict on all. Does anybody know how to change this? I don't know if there's a way to change this within the build.prop, or some other file?
Any help or advice would be much appreciated. I just have no other internet connection.
#AngelFace#
/b/rotherJudas said:
I need some help, as I'm kinda clueless with networking. I have an Ubuntu desktop connected to the same monitor my 360 is. I can connect to xbl a few different ways.
1. With the d-link wireless gaming adapter, set to adhoc mode, connected to my wifi tether.
2. USB/wifi tethering the desktop to my phone and sharing the internet connection with the Ethernet port where my Xbox is plugged in.
I've used, wifi tether for root users, barnacle (which supposedly allows port forwarding), built in USB and wifi tether (I'm on cm7 nightly with an HTC glacier)
I've managed to connect, but NAT is set to strict on all. Does anybody know how to change this? I don't know if there's a way to change this within the build.prop, or some other file?
Any help or advice would be much appreciated. I just have no other internet connection.
#AngelFace#
Click to expand...
Click to collapse
The lack of response really blows. I have the same exact issue and I cant fathom there not being a way around it . I'll keep looking and please let me know if you stumble upon something that works
The "nat type strict" we see on xbox live, from reading around allot deals with the bandwidth(speed) of your internet. If you use fast wifi, your nat type will be ok, but if someone goes on your wifi an use the internet, it's slower. The internet speeds we get from the cell towers is no where fast enough to change it.
If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader

[Q]Turning your Android phone into a router

I'm already aware that you can turn your Android into a router and share its 3G connection, but is it possible to broadcast wifi when the phone is connected to a workstation via an internet pass through? I've looked everywhere and can't seem to find an app that is capable of this. It'd be great for people who do not have wireless at home and would like to share their broadband connection with other units in the house.

[Q] Wifi Tether and DDWRT for a complete home network

OK, my wife and I each have Sprint Samsung Galaxy S3's. We both have Wifi Tether TrevE mod installed and working and we also have a linksys router running DD-WRT.
I have wanted for a long time to create a stable home network with the router using our phones for internet. Reason being, We both have laptops that need access to our WiFi networked printer. And I also wanted to create a networked storage.
I started out trying to use the Router as a repeater bridge. The problem here is that in that mode there is no DHCP server in the router, so when you turn off WiFi Tether in the phone, there is no IP assignment taking place since it is handled by the phone. This is ok for the printer because we can set a static IP, but not ok for the laptops because they need to have auto ip assignment for all the other networks they might encounter. Plus I'd like to be able to have a friend come over and use the printer if need be without having to change his IP address. So this setup is unstable.
Then I tried the Router in Repeater mode. In this mode IP addresses are being assigned and everyone can see everyone else on the network. The problem here though, is that the Router and all connecting devices have to be in a separate subnet than the WiFi Tethering phone, i.e, Tethered Phone on 192.168.1.x and Router on 192.168.2.x (as far as I can tell anyway, I've tried putting them on the same subnet but fail to get internet access.) It's a problem because I have Samba Filesharing installed on the phones and the tethered phone is in a different subnet and not visible on the network. I want all devices visible.
So that's kind of where I am now, Wifi Tether on both phones (each setup with same settings so either phone can be used as our internet gateway) but they are on a separate subnet from the rest of the network while tethering.
How do I get all of my devices to be visible on the network?
Do I need a different setup in DD-WRT?
Currently it is setup in Gateway mode with DHCP server and wireless is in repeater mode with a VLAN setup with a different SSID from the WiFi tethered phone.
Do I need to usb tether the phone to the router? I have a usb port on the router but I've not found good instructions for getting the phones internet through to the router that way and I'm not sure that I would want it that way since I wouldn't be able to walk around with my phone.
Is there a way to make devices in different subnets visible to each other? Some kind of bridging or static routing or something?
Is it possible to have the phone connect to the router in a normal manner and for the router to then share the phones internet connection with the rest of the network? Then at least the router could run DHCP and be stable even without the phones.
Again, just to clarify, I want a home network with devices connecting to my WiFi router running DD-WRT and internet being provided by one of our phones, but with the network remaining intact when the internet provided phone is removed. Thanks for your help.
Bonus questions:
Is it possible to harness the power of both of our phones internet connections into one network by any means possible?
Are there any other wifi/tethering apps or another version of WiFi Tether that offer more features or the functionality of DD-WRT?
did you see this?
http://forum.xda-developers.com/showthread.php?t=1548844
pbmurdoc said:
did you see this?
http://forum.xda-developers.com/showthread.php?t=1548844
Click to expand...
Click to collapse
Thanks. Not much new there other than Barnacle. Didn't know about it, tried it, doesn't work on my phone. I would like to see a version of WiFi Tether with some more options though, why couldn't we have one with the same options as DD-WRT?
I did some more reading and I think what I need to do is link the subnet created by the router to the primary router (the phone serving Wifi Tether) through static routing. Unfortunately the static route needs to be done through the primary router and WiFi Tether doesn't include features like that.
I'll do some more experimenting and see what happens.
[A] Cellular Phone/USB Modem As WAN Connection
Answer is in the DD-WRT Wiki, here (http://www.dd-wrt.com/wiki/index.php/Cellular_Phone/USB_Modem_as_WAN_connection).
Or just google "DD-WRT Cellular Phone/USB Modem As WAN Connection", it should be the #1 result.
Their WIKI is a great resource.
Good luck!
EDIT:
In retrospect, I am unsure about linking to the DD-WRT site... external and all. If this is a no-no just let me know and I will delete the link.
DD-WRT Client Bridge worked for me
I was able to do what you're trying to do by configuring my DD-WRT router as a Client Bridge.
I can't post the link, but there are directions I followed exactly on the DD-WRT wiki in the section:
DD-WRT wiki mainpage / Linking Routers / Client Bridged
I'm connecting my router to the tether via wifi, and connecting my wired devices to the router. I haven't had it working long, but so far it has been great.
Got it, sort of
Just to update this thread. The client bridge is a great way to connect a wired network to the bridge but loses out on creating a stable wi-fi network when the phone tether is turned off.
Anyway, the final setup I managed was having the DD-WRT router set as a wireless repeater with a computer connected to it running a DHCP server. The computer takes care of the IP addreses so that we have a stable wired/wi-fi intranet when the phone is not sharing it's internet connection.
Update: I founde another solution/project based on OpenWRT
http://ofmodemsandmen.com/
my exploits using a Linksys E3000 have been documented here:
http://tweakedrom.com/forum/viewtopic.php?f=6&t=7
I kind of like the USB tether thing. The E3000 Router USB power charges and maintains my SCH-i605 (Verizon Samsung GN2) running CM12.1. I use this as a backup connection or in the event of main cable modem service disruption at the house. It is also great for traveling (hotels) or camping (car 12v adapter for router, or power inverter)
I just bought a used Asus RT-N66U router. Out of the box it supports USB tethering with android phones and dual WANs for failover/load balancing. ROOter also works, tested the x86 build on an old PC. I'm looking to cut out my ISP completely and just use 4G from the phone for internet. The issue I have run into is that I can't appear to do DDNS or port forwarding. My wireless carrier (verizon) appears to be employing a double NAT. If I perform a speedtest on the ookla app, I get 2 IP addresses in the results, an "internal" and an "external". Both are in the public range but I can't DDNS in with either of the IPs, nor can I get any kind of service working.
Anyone have a solution for this? I'm not 100% sure but I wonder if using the SIM card in a dedicated USB 4G modem (not tethering via the phone) would get me a direct IP? I suppose I could also sign up for a VPN service and run OpenVPN on the router but that'd cut down on speeds I think. I've also heard about punching holes for ports but I'm not 100% sure how that works, I assume I still need some 3rd party public IP for relaying or something.

[Q] Long-range Wifi repeater with auto hotspot authentication?

Hi All,
At this point, I'm just brainstorming, and would like some input. (I hope this thread is in the right place)
I'm trying to find a setup to connect to free wifi hotspots that are far away, and share that connection to a group of devices locally. For example, this solution may be useful in a boat or an RV, when you're not particularly close to a free access point.
There are commercial solutions like the Rogue Wave however, this doesn't do anything to authenticate through the Terms of Service (TOS) pages that are frequently used at free access points.
This is what brings me to using Android. There are Android apps which automate the process of accepting the terms of service. My favorite right now is WebWifiLogin (I'm familiar with the security risks involved in using public wifi; and may also have the Android device to also establish a VPN connection when doing this.) (I can't find an equivalent macro-authentication solution that will run on a PC, which would make this much easier.)
So here's my proposed solution:
1. Start with a powerful omnidirectional wifi antenna (Possibly add an in-line amp if needed. Also perhaps a directional antenna may be better for non-mobile use.)
2. Connect the antenna to any Android device that supports an external Wifi antenna. I found several Android TV devices which should work. Like This, or possibly this.
3. Set up some kind of local access point/bridge. One option may be to use fqrouter2 which supposedly uses the same Wifi radio for the local WLAN, while it also connects to the remote one. Another option may be to USB or Ethernet tether to a DD-WRT Router.
Result:
The Android device has a range to connect to a free hotspot up to a mile or two away, then automatically accepts the TOS using the WebWifiLogin app, and shares that connection locally to a handful of devices.
So am I crazy? Is this too complex to work correctly? Is there a simpler solution that I'm missing?
Can anyone confirm whether I've posted this in the correct sub-forum?
Thanks.
I use a slightly different method which yields the same results.
I have a Linksys WRT54GL router (with high gain antennas) which runs DD-WRT and a script called AutoAP. The script scans for unencrypted WIFI access points, makes sure they're live, and automatically connects to the strongest one in range.
I set up a second WPA2 encrypted WIFI SSID in the router which I connect to with my Android tablet. Once WebWifiLogin on the tablet handles the TOS login, the remote access point allows web access for any device that connects to the WRT54GL router (either by WIFI to the secondary SSID or through one of the ports)! This happens because the remote access point usually checks/remembers TOS acceptance by the MAC address of the connected device. Since it only sees the MAC address of my router, anything behind the router now gets access.
ssenemosewa said:
Once WebWifiLogin on the tablet handles the TOS login, the remote access point allows web access for any device that connects to the WRT54GL router
Click to expand...
Click to collapse
This is great information; thanks!
I would not have thought WebWifiLogin would work when connecting through another router. When WebWifiLogin is running, its status says "Listening for WiFi events" (Or something similar) so I was under the impression that WebWifiLogin would only work if the connection to the AP is made directly by the Android WiFi interface, and not through a intermediary router.
This makes things much easier.

Categories

Resources