Hi. i am working on a project with arduino and android wifi. i wanna connect my arduino to my smartphone, using my smartphone as a router with a wifi hotspot, but i don't wanna share my data connection. how do i do this? i just wanna test something regarding wifi range, so all i need is my arduino to connect to the smartphone as if the smartphone was a router. is this possible?
TL;DR
Can i use my smartphone as a router, allowing me to connect my arduino to it?
My question is why would you want to specifically not share data? Simplest answer is to put your phone on Airplaine Mode... AFAIK
I found an article that doesn't quite match your question but may give you some insight: http://stackoverflow.com/questions/...by-using-the-shell-on-a-rooted-android-device
Personally I think you would have to use some shell commands and some iptables modifications to achieve what you want.. I use DroidWall to modify iptables and block apps from connecting to the internet. Possibly you could block "Tethering" from the Internet using this app.
Hope all goes well,
Sent from my HTCONE using xda app-developers app
Related
So, at my college there are two networks that a student can use, one designed for computers (that has a proxy) and one that is designed for mobile devices (no proxy, requires MAC to get on.) I was wondering if it was possible to share my Nexus 7 *WIFI* connection to my PC...
techobsessive said:
So, at my college there are two networks that a student can use, one designed for computers (that has a proxy) and one that is designed for mobile devices (no proxy, requires MAC to get on.) I was wondering if it was possible to share my Nexus 7 *WIFI* connection to my PC...
Click to expand...
Click to collapse
Your pc got a wireless dongle?
If so just turn your Nexus into a Hotspot, connected to the Network you want
Then connect your PC to your Nexus ??
Well, I didn't make it clear. I have a wifi version N7. All I want to do is share the wireless connection that the n7 is already on with my PC. So a wireless tether would not work.
You can try to spoof your N7's mac on your pc using Mac Makeup. Your pc needs a wireless adapter and spoofs your n7's mac, so it should connect to the mobile wireless network. You probably won't be able to have both devices on the wap concurrently.
I'm guessing the reason you're looking to doing this to bypass the proxy restriction your school placed on the resource. Keep that in mind in case you decide to download a ton of torrents and they trace the usage back to your N7's mac.
fatfingered said:
I'm guessing the reason you're looking to doing this to bypass the proxy restriction your school placed on the resource. Keep that in mind in case you decide to download a ton of torrents and they trace the usage back to your N7's mac.
Click to expand...
Click to collapse
Yes, they would, but so what? Are they going to check all Asus devices? I'm sure there's plenty (unless you're in US, then Asus is very outstanding among all macbooks and iDevices). And you can't just assume he's going to download millions of illegal stuff. Maybe he wants to download Ubuntu via torrent
OP: I have not seen such a thing, there's normal tethering (3G to wifi hotspot), 3G-BT, 3G-USB, but I have never seen wifi-usb.
http://forum.xda-developers.com/showthread.php?t=1792245 check out this thread. With this adapter, BusyBox and some (more or less) basic knowlege of linux networking, I'm sure you could successfully share your wifi connection trough LAN cable, but I doubt it will ever work trough USB.
If you're running linux on your PC, then faking MAC address is so simple, that it's a better shot, if you're running windows, it's a bit trickier (but still doable).
Faking the MAC on a PC is simple too.
I'm not sure I'm even following this thread. Spoof your PC's MAC and jump on the mobile network. Done.
ALL devices have a MAC... so if they REQUIRE a specific MAC for access then they can trace everything you do online back to you. In that case I would be very cautious on what you do. They can also monitor bandwidth to your MAC (PC) and see you are pulling WAY to much bandwidth for a mobile device. If they don't care, then whatever but you may be getting a knock on your door.
You are basically circumventing their security policies and could put you in some trouble. So Clone your MAC address and keep it simple.
I've seen WiFi hotspot. Not sure if it was baked into sense though
Sent from my Galaxy Nexus using xda app-developers app
Hello, I need some experienced developer confirmation on a few things.
Is it possible to code an app that will allow a device (Android or iOS) to create a hotspot and link several other devices with each other, allowing files to be transferred with each other WITHOUT tethering the host device's data network? Just a simple router with no internet I suppose.
Adhoc won't work because most mobile devices will have issues connecting to an adhoc network.
If possible, I would like for the code to allow the hotspot to not only connect the devices via WiFi but not kill the mobile data connection when each device connects to the WiFi hotspot. Essentially connecting to the hotspot and data network at the same time; the connections working simultaneously but completely separate from each other.
In a perfect world I would like to get this coded cross-platform: ie Android/iOS and maybe even Windows/Mac.
A tough question I know, but thanks for any responses. My primary concern would be Android, because it seems like it would be more suitable to make this happen, and I actually own one.
Syn Ack said:
Hello, I need some experienced developer confirmation on a few things.
Is it possible to code an app that will allow a device (Android or iOS) to create a hotspot and link several other devices with each other, allowing files to be transferred with each other WITHOUT tethering the host device's data network? Just a simple router with no internet I suppose.
Adhoc won't work because most mobile devices will have issues connecting to an adhoc network.
If possible, I would like for the code to allow the hotspot to not only connect the devices via WiFi but not kill the mobile data connection when each device connects to the WiFi hotspot. Essentially connecting to the hotspot and data network at the same time; the connections working simultaneously but completely separate from each other.
In a perfect world I would like to get this coded cross-platform: ie Android/iOS and maybe even Windows/Mac.
A tough question I know, but thanks for any responses. My primary concern would be Android, because it seems like it would be more suitable to make this happen, and I actually own one.
Click to expand...
Click to collapse
Maybe disable data and try a hotspot app? If you have a wired and wireless connection on a computer, turn it into a hotspot, using apps like Connectify (on Windows).
MrObvious said:
Maybe disable data and try a hotspot app? If you have a wired and wireless connection on a computer, turn it into a hotspot, using apps like Connectify (on Windows).
Click to expand...
Click to collapse
Thanks, I've already actually been able to accomplish that with one of the many WiFi tether apps. I am actually wanting to know if it's possible that I can code a version of that, that doesn't require root, works on most phones, creates a hotspot (doesn't just use the stock one), and doesn't use data. I suppose I could deal with it disabling data. As long as it never ever deals with data while the app is on, because I would prefer to not deal with carrier issues.
Alternatively I wouldn't mind using Bluetooth as long as I can connect the host device to more than one client devices, where the host device acts as a server. Can Android connect several devices via bluetooth?
Syn Ack said:
Thanks, I've already actually been able to accomplish that with one of the many WiFi tether apps. I am actually wanting to know if it's possible that I can code a version of that, that doesn't require root, works on most phones, creates a hotspot (doesn't just use the stock one), and doesn't use data. I suppose I could deal with it disabling data. As long as it never ever deals with data while the app is on, because I would prefer to not deal with carrier issues.
Alternatively I wouldn't mind using Bluetooth as long as I can connect the host device to more than one client devices, where the host device acts as a server. Can Android connect several devices via bluetooth?
Click to expand...
Click to collapse
I don't think you can do multiple Bluetooth. Honestly you'd be better trying to do it from a computer/router.
MrObvious said:
I don't think you can do multiple Bluetooth. Honestly you'd be better trying to do it from a computer/router.
Click to expand...
Click to collapse
That's the thing, we're trying to do this for our app with no extra devices. No worries I'll keep brainstorming.
You might want to check out an app called JoikuShare (sorry, can't post links yet).
Sorry in advance if the answer is obvious but I want to use my galaxy s4 as a "relay" if you will for a Wifi connection. Is it possible to share the connection and use my device as an access point of sorts? To be clear, I don't want to tether my mobile connection because there doesn't seem to be a good way to do this without AT&T harassing me about it since they have once before, otherwise I would just tether.
I am rooted running clean ROM 1.0
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
If you don't want to tether then I don't understand. If you are using a wifi connection and want to share - just have other devices connect directly. Why do you want to use your phone as a wifi bridge?
alphadog00 said:
If you don't want to tether then I don't understand. If you are using a wifi connection and want to share - just have other devices connect directly. Why do you want to use your phone as a wifi bridge?
Click to expand...
Click to collapse
My wireless signal has a very difficult time reaching my PC. I can understand why people would think my request is futile but I've noticed that proximity of the router to my laptop greatly impacts my latency. So I was wondering if it's possible to use it as a relay of sorts :-/
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
I don't think the phone can use the radio to receive and broadcast wifi at the same time.
I would consider moving my router.
Sent from my SAMSUNG-SGH-I337 using xda premium
So I'm trying to hide some network traffic from my provider Three UK. As my new contract only has 2gb hotspot and I really miss the old unlimited system they had.
Now I'm only trying to tether an android tablet to the phone nothing else, so I'm not sure how they're detecting that it's tethered bandwidth.
Figured I'd try using a VPN to hide the data but now I'm confused. My phone isn't actually sending the hotspot traffic over the VPN.
I tested local traffic and the values show that is going through the VPN, but anything via the hotspot is not. Any idea why? See speed at the top of this bad image, then VPN speed below.
i.imgur kbxyPJR.png
Looking into this further, my tablet get's a seperate IP than my phone, both provided by Three UK.
The vpn might not help much depending on you setup. Usuall there is a packet counter for tethering, among other things. Try providing output from these commands via adb shell or terminal emulator, probably need to be ran as root.
iptables -L -n -x -v
ip route show
ip rule show
Usually iptables rules get reset on a reboot, I usually run iptables -F, which flushes all rules a -Z should reset counters. But starting with the output of those three should help to figure out whats going on exactly.
Sent from my SM-G900P using XDA Free mobile app
The major issue being I don't want to root the device that's being the hotspot.
I can tether invisibly via bluetooth and some simple apps but these are far from perfect and cause errors in things such as plex etc.
The wifi hotspot is interesting though. It seems to actually work as a little server, gives out a new connection to the devices not just sharing it's own. To get 2 different external IP addresses, very interesting.
Pantho86 said:
The major issue being I don't want to root the device that's being the hotspot.
I can tether invisibly via bluetooth and some simple apps but these are far from perfect and cause errors in things such as plex etc.
The wifi hotspot is interesting though. It seems to actually work as a little server, gives out a new connection to the devices not just sharing it's own. To get 2 different external IP addresses, very interesting.
Click to expand...
Click to collapse
I have never heard of it giving out external IP addresses, maybe its something specific to you carrier. If thats the case why not connect it via bluetooth to a linux pc, make the pc the access point, then you can route and rewrite packets easily.
Sent from my SM-G900P using XDA Free mobile app
miked63017 said:
I have never heard of it giving out external IP addresses, maybe its something specific to you carrier. If thats the case why not connect it via bluetooth to a linux pc, make the pc the access point, then you can route and rewrite packets easily.
Sent from my SM-G900P using XDA Free mobile app
Click to expand...
Click to collapse
Well, if we're adding a PC to the mix I could just USB tether then output wifi from there.
However, it's mainly while im at work watching TV at lunch on the tablet.
Pantho86 said:
Well, if we're adding a PC to the mix I could just USB tether then output wifi from there.
However, it's mainly while im at work watching TV at lunch on the tablet.
Click to expand...
Click to collapse
In that case I am pretty sure you will need root. They are probably seeing that you are tethering by either iptables packet counters, creative routing, or user agent strings. If you are tethering another android device for watching media then it is unlikely they are catching you by user agent strings, since both devices should have android user agents. If you are opposed to rooting the device maybe you could buy a cheap one, root it, and swap the sim card into it when you want to tether?
Sent from my SM-G900P using XDA Free mobile app
Pantho86 said:
So I'm trying to hide some network traffic from my provider Three UK. As my new contract only has 2gb hotspot and I really miss the old unlimited system they had.
Now I'm only trying to tether an android tablet to the phone nothing else, so I'm not sure how they're detecting that it's tethered bandwidth.
Figured I'd try using a VPN to hide the data but now I'm confused. My phone isn't actually sending the hotspot traffic over the VPN.
I tested local traffic and the values show that is going through the VPN, but anything via the hotspot is not. Any idea why? See speed at the top of this bad image, then VPN speed below.
i.imgur kbxyPJR.png
Click to expand...
Click to collapse
I posted a guide on how to do this, its the only method that's worked for me, but you need to be rooted
SmokeyTech1 said:
I posted a guide on how to do this, its the only method that's worked for me, but you need to be rooted
Click to expand...
Click to collapse
Well bugger, I really don't want to root my Z3 due to all the DRM software on it.
I can tether USB and Bluetooth without being detected, but WiFi hits this snag still sadly. I can USB tether to a laptop then wifi share from there but that's getting a bit long toothed to just tether my tablet.
The Bluetooth tethering works but flash apps and a few others don't really like it, plex etc.
So there is hidden tcpdump enabler but I need an OTP? Is there anyway around this? I thought OTP is for buying stuff? tcpdump is a free linux tool.
Reason I need this is I am trying to get Larix to work. It is an Android RTMP streamer app. It will not connect to my rtmp media server so I'd like to look at the packets between the S8 and media server. I do not have direct access to the media server.
Thanks
Ray
You'll need root for packet capturing. Best get your hands on a sniffer for a man in the middle attack on your own server and capture packets that way. Unless someone knows of a rootless packet capturing method. Only way I can think of is having a hardwired laptop with wifi hotspot enabled on it and capture the packets that way.
You can actually use an app that setup a local VPN connection and then you have access to the packets.
play.google.com/store/apps/details?id=jp.co.taosoftware.android.packetcapture
play.google.com/store/apps/details?id=app.greyshirts.sslcapture
Valkiry said:
You'll need root for packet capturing. Best get your hands on a sniffer for a man in the middle attack on your own server and capture packets that way. Unless someone knows of a rootless packet capturing method. Only way I can think of is having a hardwired laptop with wifi hotspot enabled on it and capture the packets that way.
Click to expand...
Click to collapse
You will not be able to put your wifi radio in monitor mode without root, if you can at all.
partcyborg said:
You will not be able to put your wifi radio in monitor mode without root, if you can at all.
Click to expand...
Click to collapse
But you dont need to for the case he asked .
As soon as the app is started and the full VPN tunnel is up, all the traffic is routed via the VPN connection, so the app is receiving all the traffic from the device.
If you want to capture WiFI frames, then you need more than just root. The wifi card needs to be put in promiscuous mode...if that is supported on Android I don't know.
rigocalin said:
But you dont need to for the case he asked .
As soon as the app is started and the full VPN tunnel is up, all the traffic is routed via the VPN connection, so the app is receiving all the traffic from the device.
If you want to capture WiFI frames, then you need more than just root. The wifi card needs to be put in promiscuous mode...if that is supported on Android I don't know.
Click to expand...
Click to collapse
Which is why I quoted the person who asked