Wifi and 3G working together - Droid X Android Development

I have yet to come across the ability to use wifi and 3G simultaneously so it seems like it could be well worth implementing.
http://mobisocial.stanford.edu/news...together-by-hacking-connectivityservice-java/
*Also posted in Android General: http://forum.xda-developers.com/showthread.php?p=15161427

Well, I didn't go to Stanford, but wouldn't you have to be able to tell the system which traffic should use which interface? Generic routing can't handle this stuff.

My thoughts were leaning towards those apps that already require one connection type versus another. For example wouldn't it be nice for those that use wifi to vpn into their network(s) for work/home and also be able to use apps that require their 3G. I recall having to switch to 3G from my wifi once or twice at home to use just an app that was developed to use only 3G.
The simplest thing IMO (if possible) would be to have the person be able to set a preference on their phone for wifi or 3G (by app selection would rock). Then apps would connect through the preference if available (and if allowed) or move on to the alternate if not.
This kind of discussion is what I was hoping for so please keep it coming...
*BTW we've come a long way since the Vogue

This is what we used to call "shotgunning"

Jiggity Janx said:
My thoughts were leaning towards those apps that already require one connection type versus another. For example wouldn't it be nice for those that use wifi to vpn into their network(s) for work/home and also be able to use apps that require their 3G. I recall having to switch to 3G from my wifi once or twice at home to use just an app that was developed to use only 3G.
The simplest thing IMO (if possible) would be to have the person be able to set a preference on their phone for wifi or 3G (by app selection would rock). Then apps would connect through the preference if available (and if allowed) or move on to the alternate if not.
This kind of discussion is what I was hoping for so please keep it coming...
Click to expand...
Click to collapse
Right... I guess it would be handy if the only check was for whether a particular connection was ACTIVE, not necessarily if it were the primary interface.
Well, I guess you could futz it manually with the routing table -
wifi
addr 192.168.1.100
gateway 192.168.1.1
ppp0
addr 76.76.76.76
gateway 76.1.1.10
corp public
20.20.20.20
so, if you had a corp vpn app that required wifi, and could force both to be enabled, you could set...
Code:
route add -host 20.20.20.20 netmask 255.255.255.255 gw 192.168.1.1
but it'd be a pain to change every time. guess you could build an app to handle it...
*BTW we've come a long way since the Vogue
Click to expand...
Click to collapse
Aye, mate.
"shotgunning"
Click to expand...
Click to collapse
new to me. will google this.
EDIT: ah, yes - multiplexing PPP connections. not possible, I think. You might be able to load balance/share, though, and that could be handy.

Related

VOiPover3G for Android????

There is an iPhone 3G app called VOiPover3G that tricks other iPhone apps into thinking that they are on Wi-Fi even though they are on 3G/EDGE/GPRS.
Is anything like this being looked at/developed for Android phones??
Please post questions about apps in the correct subforum. This will probably get locked...
This probably is the right subforum. Apps forum is for apps that have been compiled and released. This forum is for dev including apps dev.
Anyway, what would be the point in a program like that? What programs could benefit from it?
JaboJG said:
This probably is the right subforum. Apps forum is for apps that have been compiled and released. This forum is for dev including apps dev.
Anyway, what would be the point in a program like that? What programs could benefit from it?
Click to expand...
Click to collapse
It would allow programs like sipdroid (the market version) to think it was on wifi and when we finally get something like Fring for Android that would also be able to use the data package to make voip calls, even "real" skype calls.
It is in the wrong part of the forum, but I might as well answer it...
While the iPhone doesn't allow certain services over 3G (e.g. VoIP stuff), the current Android handsets + apps don't do such a thing.
e.g. Sipdroid works fine over edge/umts/wifi (as good as those networks can support VoIP).
It's really kind of a strange question to be honest. If there isn't a problem, don't ask questions about it
JaboJG said:
This probably is the right subforum. Apps forum is for apps that have been compiled and released. This forum is for dev including apps dev.
Anyway, what would be the point in a program like that? What programs could benefit from it?
Click to expand...
Click to collapse
Not to harp on the point made by Diceman4, but it really isn't the correct sub-forum. If you look at the Stickies in the Apps/Games sub-forum, you will see that one of them is regarding request/ideas for applications.
JaboJG said:
This forum is for dev including apps dev.
Click to expand...
Click to collapse
I don't see any development going on in the first post though. This seems more like a post for the "ideas for apps" thread in app subforum. Although if the op came back with a chunk of code that needed debugging, that would be a different story.
MOD EDIT
Moved to Applications & games forum
The main reason for asking was because of problems with Tmob in the UK blocking sipdroid (port 5060) and preventing it using 3G etc.
If we had an app like VOiPover3G it may very well allow us to bypass that problem, I don't know
robiom said:
The main reason for asking was because of problems with Tmob in the UK blocking sipdroid (port 5060) and preventing it using 3G etc.
If we had an app like VOiPover3G it may very well allow us to bypass that problem, I don't know
Click to expand...
Click to collapse
Why? a better bet would be to ask the sipdroid creator to include a user configurable port setting. The point of android is that the workarounds don't need to be workarounds on the phone, but rather workrounds for interfacing with the network.
robiom said:
The main reason for asking was because of problems with Tmob in the UK blocking sipdroid (port 5060) and preventing it using 3G etc.
If we had an app like VOiPover3G it may very well allow us to bypass that problem, I don't know
Click to expand...
Click to collapse
The technique described by the op routes traffic internally from the wifi interface to the cellular interface. That will have no effect on the protocol or port used. In other words, it will only be of use if the app is hardcoded to use wifi only and you want to work around that. If the cellular carrier is blocking the data, this method will not get around that.
As for sipdroid, you can manually configure the port used.
jashsu said:
The technique described by the op routes traffic internally from the wifi interface to the cellular interface. That will have no effect on the protocol or port used. In other words, it will only be of use if the app is hardcoded to use wifi only and you want to work around that. If the cellular carrier is blocking the data, this method will not get around that.
As for sipdroid, you can manually configure the port used.
Click to expand...
Click to collapse
If you use pbxes there are a handful of different ports that will work but I haven't been able to get any to work. Saying that, up till recently I was using Gizmo5 but pbxes have blocked it's use after they (Gizmo5) allegedly stole/used sipdroid code and renamed it as if it was there own.
If any one has had success with sipdroid on 3g etc on t-mob UK please post the sip provider and the settings used.
Have you guys tried using the FULL version of sipdroid.. the one on the market didnt allow for 3g calls but this one does http://code.google.com/p/sipdroid/
turboyo said:
Have you guys tried using the FULL version of sipdroid.. the one on the market didnt allow for 3g calls but this one does http://code.google.com/p/sipdroid/
Click to expand...
Click to collapse
Been there, done that, even got the T-shirt.
The problem is T-mob in the UK are a pain in the neck and are blocking the port 5060.
As someone has already mentioned in this thread, what is needed is a user configurable port so that T-mob UK can't block.
Let's hope sipdroid developers can do something along those lines.
I don't get it... have you tried all the alternative ports listed in pbxes website?
53, 69, 80, 135, 161, 443, 500, 1433, 1701, 1812, 3389, 4500, 5061, 5900, 16999, 26999 and
36999 (recommended)
Note:
Because of the DNS entries for pbxes.org your device may be selecting port 5060 automatically. If you want to use an alternative port enter 188.40.65.148 as SIP server.
Click to expand...
Click to collapse
Both of them work as UDP or TCP.
TCP is recommended as it will help with battery life.
If none of these ports work, then It has to be that T-mobile has a Layer 7 filter in place looking for the SIP signaling traffic, and there should be no workaround possible unless you can wrap your sip traffic in a VPN. Nothing can be done to stop that, unless they filter the whole L2TP,PPTP,IPSEC or OpenVPN protocols.
I have tried most if not all of the ports specified and still no joy BUT I'll give it another go. What SIP provider do you use?
If T-mob are killing all SIP traffic how is it possible to use sipdriod over VPN?? Surely that is a major undertaking?
If it was done though, it would be the most robust and bulletproof VOIP app and would never be stopped Brilliant
I have just tried every single one of the alternative ports and every time I had a registration failure (timeout) so I guess T-mob are filtering for SIP traffic.
That leaves only the VPN route OR change providers OR change phones.
robiom said:
I have just tried every single one of the alternative ports and every time I had a registration failure (timeout) so I guess T-mob are filtering for SIP traffic.
That leaves only the VPN route OR change providers OR change phones.
Click to expand...
Click to collapse
Changing phones WILL NOT work since it isn't the phone that is causing the problem, it is the provider.
VPN should be fine, but you'll need a VPN server somewhere to connect through, i.e., your home computer.
There is nothing a carrier can do to block SIP over VPN. Everything is tunneled over the VPN connection so they can't know what goes in there.
As soon as we have a reliable VPN service (Donut seems to have PPTP or L2TP, although I'd love to see OpenVPN there) , you'll ve able to set-up your own voip and vpn server and pipe all the voice through it.
There is a couple of VoIP providers who can do that for you. One that comes to mind is callwithus.
On the connection issue with t-mobile, I suggest you try this:
If you have a DMZ linux/cygwin (altough a windows box might make it) host or a shell anywhere you can test if your provider is locking those ports, the pbxes ip or maybe even the SIP traffic.
Listen in a port using netcat:
netcat -n -l -vvvv 5060
Click to expand...
Click to collapse
Launch the Terminal Emulator in your android phone and test if you can connect to your host:
nc <your_hostname> 5060
Click to expand...
Click to collapse
Type something... if you can see the text, they have a L7 filter in place.
If you can't see anything, they are blocking the port.
Now change the listening port to 36999 for instance.
Try to connect again. It should work.
Now in Sipdroid, add your hostname, give it any username, any password, use the 36999 port and select TCP connection and keep the netcat running on your listening host.
If you see a connection in your listening host and some signalling traffic, pbxes should work for you.
If you don't, then there's a really advance L7 filter between you and the internet and they can block anything they want to.
In this case, the only solution (and there's nothing they can do unless they also block it), is to use a VPN.
Thanks guys for all your suggestions. I'll try and go through all the procedures you've suggested stickman and I'll post the results

Redirect with wireless tether possible?

Hi all!
I'm a happy g1 user, who often use the wireless tether for root users-app. Really like this app, I think its one of the best for android.
On my study places theres no public wifi point, so no wireless internet access.
I have a limited data plan, so I can go online(if its urgent) while "studying" .
I enabled the access control, otherwise the other ones would consume my traffic volume in a few days
My question is:
Would it be possible to make an redirect for the other people, who connect to my phone?
I mean, when they open the browser and try to google ^^ they would be redirected to a page on my phone/or a redirect to my laptop?
It would be great to give them some infos for e.g. an running ircserver.
If someone has a idea, how to do that, I would be really happy
Greetings, scheich
You would have to rewrite the iptables rules used by tether, but yes, definitely possible. Why though? Wouldn't it be better to just keep them out entirely?
scheich said:
Hi all!
I'm a happy g1 user, who often use the wireless tether for root users-app. Really like this app, I think its one of the best for android.
On my study places theres no public wifi point, so no wireless internet access.
I have a limited data plan, so I can go online(if its urgent) while "studying" .
I enabled the access control, otherwise the other ones would consume my traffic volume in a few days
My question is:
Would it be possible to make an redirect for the other people, who connect to my phone?
I mean, when they open the browser and try to google ^^ they would be redirected to a page on my phone/or a redirect to my laptop?
It would be great to give them some infos for e.g. an running ircserver.
If someone has a idea, how to do that, I would be really happy
Greetings, scheich
Click to expand...
Click to collapse
Hmm, year sure, but I think it would be interesting to chat "offline" with each other, and talk about stuff of the course.
Thx for the info about the iptables, I will take a look at it.

Monitor Froyo hotspot clients?

Hi,
Let's say I want to check, who's connected to my hotspot. I've searched for an application or terminal commands that can show this info, but didn't find anything. Is there such a thing?
Thanks,
William.
Good question, I'm interested as well.
Sent from my Nexus One using XDA App
i never tried to monitor wifi hotspot clients but i think these ways should work.
way 1:
goto terminal, type:
arp -a
this command displays all entries, since the wifi connection actually makes the phone a router, so all connected clients should have corresponding arp entry.
way 2:
goto market and download Network Discovery application, use it to scan the whole network. Also it provides port scanning function too.
(but .. this application usually crashes on my phone after scanning for long time)
Interesting, thanks. I'll test and reply.
Tested, even the basic "busybox arp" with no switches works. The result needs to go through grep or use "specify interface" switch to avoid showing the 3G data IP.
I suppose that access control has to be implemented in the kernel, so I won't mess with it - but now I have a script line to see, who's connected. Thanks
And one day someone could write a widget for it. At least modify the on/off widgets to show the number of connected clients.
Any more news on this? The network discovery app kind of worked, but it had to use wifi which disabled tethering.
I think there has to be a way to see who is connected to your hotspot at one time without disabling anything.
The Palm Pre Plus on Verizon does this automatically. There are a lot of features that phone has that I wish android would impliment...Man it would have been nice if google had bought palm
Jack_R1 said:
Tested, even the basic "busybox arp" with no switches works.
Click to expand...
Click to collapse
Is that news?
You want an app/widget for that? There is none. I've turned to the creator of the "hotspot widget" and asked him to implement counter for connected clients (which should good enough for anything I can think of), but I got no answer. I also tried to find any open-source code for such widget to modify and add the functionality, but didn't find any.
The older Eclair CM build had such app for manual control, showing MACs of connected clients.
I dont think the stock froyo tethering implements this but the wired/wireless tether apps included in 2.1 roms has the function, mac address filtering too =D

[Q] WiFi hotspot management?

On Symbian I could add all separate WiFi hotspots, routers, etc, to a big list of "Connection Points", and configure them separately. However, looks like there is no option for this on Android. Did I miss something or I really can't set up different proxy/static IP for different hotspots? I would need this feature really bad, as my school router uses a set of settings with the proxy, the home connection needs static IP (what of course does not works with the school system) and for open networks I need clean settings.
So, is there any apps or setting options to have separate set-ups for separate hotspots?
No idea, anyone?
fonix232 said:
No idea, anyone?
Click to expand...
Click to collapse
You cant do it like on symbian(never used it), you can change the settings for the wifi network, currently on and that's it...What you want is not available as far as i know.

Set DNS app

Useful app, and it did speed up my browsing and market downloads, a lot!
https://market.android.com/details?id=uk.co.mytechie.setDNS&rdid=uk.co.mytechie.setDNS&rdot=1
okantomi said:
Useful app, and it did speed up my browsing and market downloads, a lot!
https://market.android.com/details?id=uk.co.mytechie.setDNS&rdid=uk.co.mytechie.setDNS&rdot=1
Click to expand...
Click to collapse
I have tried this - however, I use OpenDNS at home and saw improvement
Im going out on a limb here and guessing the app will only work if ou have DNS set up on the network in which you are connected to.
tincbtrar said:
I have tried this - however, I use OpenDNS at home and saw improvement
Im going out on a limb here and guessing the app will only work if ou have DNS set up on the network in which you are connected to.
Click to expand...
Click to collapse
Hmmm...seems to really work with several different networks, including my Clear Wimax MiFi. Placebo effect? I don't care, if it works. Especially for those never ending market updates...
Hah that's funny! I actually just went about changing up my DNS servers again for my home network. I actually have my wireless router and all other devices set up with a great DNS server setup. The primary DNS is Google's main public server, which is 8.8.8.8, meanwhile my secondary is the server that is closest to my actual location, which is good. Just in case the main server fails I will still have a close server connection, which means an overall good connection to fall back on.
Best tool to use all around to find out if your primary and secondary DNS servers are really fast and reliable? Google's own tool called namebench. It can be found here: http://code.google.com/p/namebench/
It will recommend to you the fastest server as the main, showing the percentage of how much better it is compared to your current, and it will also show the closest server based on your location for the secondary. Works like a charm every single time.
Actually, I have been using Google's DNS for like 2 years now as my main, but my secondary is what has recently changed. No complaints here at all. It chugs along like it should without so much as a hiccup.
Anyone reading this: Once you find the best DNS servers for yourself, you should go about applying them to all of your internet enabled devices as I have done myself. For example: wireless router, computer, phone, tablet, Wii, PS3, and any other device you can think of! You shan't regret it!
StrifeSoldierVII said:
Hah that's funny! I actually just went about changing up my DNS servers again for my home network. I actually have my wireless router and all other devices set up with a great DNS server setup. The primary DNS is Google's main public server, which is 8.8.8.8, meanwhile my secondary is the server that is closest to my actual location, which is good. Just in case the main server fails I will still have a close server connection, which means an overall good connection to fall back on.
Best tool to use all around to find out if your primary and secondary DNS servers are really fast and reliable? Google's own tool called namebench. It can be found here: http://code.google.com/p/namebench/
It will recommend to you the fastest server as the main, showing the percentage of how much better it is compared to your current, and it will also show the closest server based on your location for the secondary. Works like a charm every single time.
Actually, I have been using Google's DNS for like 2 years now as my main, but my secondary is what has recently changed. No complaints here at all. It chugs along like it should without so much as a hiccup.
Anyone reading this: Once you find the best DNS servers for yourself, you should go about applying them to all of your internet enabled devices as I have done myself. For example: wireless router, computer, phone, tablet, Wii, PS3, and any other device you can think of! You shan't regret it!
Click to expand...
Click to collapse
Yes, I chose Google DNS for my main when on the go (using MiFi usually) and will set to whatever works best at home (haven't checked yet but will use that namebench app you recommend). I have seen a real improvement so far.

Categories

Resources