USB tetherin with iphone - Acer Iconia A500

I am not sure if any one has got usb tethering to work using the iphone. I have tried the steps needed for the android phones but when I type dhcpcd usb1 it returns interface not found or invalid. Usb0 returns: checking for 169.254.253.15
using ipv4ll address 169.254.253.15
forked to background, child pid 2044

i just use a JB iPhone and mywi

Related

reverse bluetooth tether bid request

Hello.
I am trying to tether my sim-card-less G1 to my windows mobile phone (using bluetooth) so I can use the unlimited data plan of my cdma windows mobile phone with my G1.
I can't code, so, I decided to put a little incentive behind my wish : 150$.
I've put up a bid request here : http://www.rentacoder.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=1231518
I think a good starting point would be to use http://code.google.com/p/android-wifi-tether/ , it already installs the binaries and kernel extensions for pand, iptable... I think it only needs some tweaking to allow it to do it's job in the opposite direction, and some more work to allow it to connect properly to the windows mobile based bluetooth access point.
Any takers?
How about this: cancel the wimo cdma crapola and throw it at a bus. Be sure that it gets crushed into tiny bits, then sweep it into a pile and piss on it. Now go to tmobile or att and sign up for some data plan.
If you really insist on doing things the retarded way and tethering a phone through a phone, there is no coding required. You just need to read up on pppd linux bluetooth tethering for how to actually do it.
stanelie said:
Hello.
I am trying to tether my sim-card-less G1 to my windows mobile phone (using bluetooth) so I can use the unlimited data plan of my cdma windows mobile phone with my G1.
I can't code, so, I decided to put a little incentive behind my wish : 150$.
I've put up a bid request here : http://www.rentacoder.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=1231518
I think a good starting point would be to use http://code.google.com/p/android-wifi-tether/ , it already installs the binaries and kernel extensions for pand, iptable... I think it only needs some tweaking to allow it to do it's job in the opposite direction, and some more work to allow it to connect properly to the windows mobile based bluetooth access point.
Any takers?
Click to expand...
Click to collapse
Switching plans or company is really not an option for me.
My CDMA phone is on telus, and they are the only company here to offer a less evil data plan. The GSM companies, Rogers and Fido, are outrageously expensive.
I did manage to tether the G1 to my computer using bluetooth, I could ping both ways, but the iptable stuff is beyond me.
I was reading http://joshuaredstone.blogspot.com/2009/01/bluetooth-tethering-from-ubuntu-to.html and http://www.gotontheinter.net/content/second-g1-story-proper-bluetooth-tethering-how-short
No takers for my retarded request?
Doesn't your WinMo phone have WiFi?
You could use WMWifiRouter that converts your phone in an AP and connect in Ad-Hoc mode with the G1 to the WinMo.
stanelie said:
My CDMA phone is on telus, and they are the only company here to offer a less evil data plan. The GSM companies, Rogers and Fido, are outrageously expensive.
Click to expand...
Click to collapse
I can't imagine what you must be smoking because they both cost EXACTLY THE SAME...
Telus: $25 for 500MB, $30 for 1GB, $60 for 3GB, reference: http://www.telusmobility.com/en/ON/connectplans/index.shtml
Rogers/Fido: $25 for 500MB, $30 for 1GB, $60 for 3GB, $80 for 5GB, reference: http://www.rogers.com/web/content/wireless-plans/iphone_phones_plans#dop and http://www.fido.ca/web/content/internet/wia_email_options
Wifi is not an option, it drains the battery of the winmo phone too quickly.
I have a grandfathered plan with telus that gives me unlimited data for 45$ a month. And since I can tether my computer easily with my winmo phone, I'd hate to loose it by switching providers...
If wifi isn't an option because it drains your battery, then the same can be said for bluetooth -- it also drains your battery.
Well,
When I'm tethering using wmwifirouter, my phone runs hot and dies after about 1 hour.
When I tether using bluetooth, my phone stays cool and this can go on for much longer...
So,
I got in touch with the creator of Tether Blu and he tried to cook something up for me. But for lack of time, he had to stop working on it.
It is two folds : a compiled pand for android, and a small script that runs pand and associates it with my windows mobile based bluetooth access point.
A working network is established between the two devices using the bluetooth link, the android phone can even reach the internet using this link. However, somehow, DNS queries do not get relayed, so I can only reach websites or devices using their numeric IP addresses. Also, most applications that use a data connection to the internet check before doing their stuff if a working link is there by querying android about the status of either the cellular data link, or the wifi connection. These applications fail to pass this check because they do not recognize the bluetooth link as a valid link, even though the link works. Remote (a RDP client) is such an app, where even if you try to reach a machine using it's ip address, you can't because the application thinks it is not connected to a network.
So, does anyone know how to correctly assign working DNS entries to Android?
Also, does anyone know how to flag the data link or the wifi link as being "UP" even though they are not really up? This looks like a good way to have all these applications that check whether or not a data link exists to still work using the bluetooth tether.
Here is the code of tether.sh :
Code:
#!/system/bin/sh
MACADDRESS="00:17:83:0F:0F:C7"
apath=""
tpath=""
IFS="/"
for i in $0
do
apath="$tpath"
tpath="${tpath}${i}/"
done
IFS="|"
pand_pidfile=${apath}pand.pid
PAND_PID=0
if [ -e $pand_pidfile ]; then
PAND_PID=`cat $pand_pidfile`
if [ "x" = "x$PAND_PID" ]; then
PAND_PID=0
else
if ! (ps | grep ${apath}pand | grep -v grep > /dev/null); then
PAND_PID=0
fi
fi
fi
logfile=${apath}tether-log
case "$1" in
start)
if [ 0 -eq $PAND_PID ]; then
echo "Starting pand"
rm $pand_pidfile > /dev/null 2>&1
PAND_PID=0
rm $logfile > /dev/null 2>&1 # if it exists
${apath}pand --role PANU --connect $MACADDRESS -n --pidfile $pand_pidfile || exit
sleep 1
ifconfig bnep0 up
sleep 2
netcfg bnep0 dhcp
fi
echo "Success"
;;
stop)
if [ 0 -ne $PAND_PID ]; then
echo "Killing pand at pid $PAND_PID"
ifconfig bnep0 down
${apath}pand -K || exit
kill $PAND_PID || exit
rm $pand_pidfile > /dev/null 2>&1 # Looks like pand may have removed it for us
sleep 1
fi
echo "Success"
;;
*)
echo "Usage: ${apath}tether.sh {start|stop}"
exit 1
;;
esac
exit 0
Attached to this post is a zip file containing two files : tether.sh and pand. Put the two files in this location on your android phone:
/data/local/
then chmod 777 the two files, these commands (as su) on the android phone will do it for you:
chmod 777 /data/local/pand
chmod 777 /data/local/tether.sh
then to test it out, start tethering on your win mobile phone, turn bluetooth on your android device, wait a little bit and then run this command as su on the android phone:
/data/local/tether.sh start
I have to do a ./tether.sh start on my phone.
You will have to edit the tether.sh file so that the mac address of your bluetooth accesspoint matches the one in the script.
Thanks!
stanelie said:
So,
I got in touch with the creator of Tether Blu and he tried to cook something up for me. But for lack of time, he had to stop working on it.
It is two folds : a compiled pand for android, and a small script that runs pand and associates it with my windows mobile based bluetooth access point.
Click to expand...
Click to collapse
Thanks for the script. I was able to make my Acer Liquid A1 android phone to access internet via my laptop with bluetooth. You can set dns using the following code, just add it after dhcp.
Code:
for i in 1 2; do
dns=`getprop net.bnep0.dns$i`
if [ x"$dns" != "x" ]; then
setprop net.dns$i $dns
fi
done
But still, need to find a way to flag the network as "UP".
Rudeness and unhelpfulness seems to be the norm around here. But, many months on, there remains no easy solution for this problem, despite the "help" offered below. (Please, lbcoder, do try and behave online as you would face to face.)
I too would like a REVERSE BLUETOOTH TETHER app for Android, preferably at the Android Market.
Paul
lbcoder said:
How about this: cancel the wimo cdma crapola and throw it at a bus. Be sure that it gets crushed into tiny bits, then sweep it into a pile and piss on it. Now go to tmobile or att and sign up for some data plan.
If you really insist on doing things the retarded way and tethering a phone through a phone, there is no coding required. You just need to read up on pppd linux bluetooth tethering for how to actually do it.
Click to expand...
Click to collapse
I'm also seeking a resolution to this issue - see the latest posts on this thread:
forum.xda-developers.com/showthread.php?p=8236341#post8236341
Basically I have managed to establish connectivity via a bluetooth PAN, but because a lot of apps use the android ConnectivityService, they cannot get online as the ConnectivityService still believes there is no connectivity.

[UPDATE 18/05/13][GUIDE] Spoof WIFI Mac address in Android

[UPDATE 18/05/13]
HOW TO SPOOF YOUR MAC ADDRESS IN ANDROID
UPDATE 18/05/2013
App (4.0 and above only ) : http://forum.xda-developers.com/showthread.php?t=1385577&page=14
DONT FORGET TO THANK HIM !
30/04/2013
App (4.0 and above only ) : http://www.mediafire.com/?qapodo05oc1im06
It is based on the command: busybox ifconfig*eth0/wlan0* hw ether
Thanx to hotsync for this app !
REQUIREMENTS
1) ROOTED PHONE
2) BUSYBOX INSTALLED
3) Terminal App
OPEN UP TERMINAL AND WRITE
:su
:busybox iplink show eth0
(THIS WILL SHOW YOUR CURRENT MAC ADDRESS)
NOW TYPE IN
:busybox ifconfig eth0 hw ether 00:11:22:33:44:55
(INSTEAD OF 00:11:22:33:44:55, YOU CAN WRITE YOUR WANTED ADDRESS)
CONGRATULATION, YOU HAVE SUCCESSFULLY SPOOFED YOUR MAC ADDRESS!
YOU CAN CHECK YOUR MAC ADDRESS BY TYPING
:busybox iplink show eth0
PS: I CANT GUARANTEE YOU, IF THIS WORKS . BUT IT SHOULD WORK IF YOU GOT BUSYBOX INSTALLED.
(I HAVE TESTED THIS ON THE NEXUS S AND THE GALAXY S2
HTC AND LG DEVICES IS ALSO SAID TO BE WORKING! )
Why would you want to do this?
On some routers you can limit connections to only allow specific mac addresses - this would let you connect without needing to add permissions. possibly at work or a friend's house?
Im not familiar with any use unless you're using backtrack, but that's a whole different topic
I am getting no such device....
mustafaayubkhan said:
I am getting no such device....
Click to expand...
Click to collapse
Same problem
Any solution to this? I am running optimus 2 X with cm7
the 0 in eth0 is zero, maybe thats the issue
busybox ifconfig will list your devices, i didnt have eth0 (ethernet 0) i had wlan0 (wireless lan 0)
try
busybox ifconfig wlan0 hw ether 00:11:22:33:44:55
Thanks, I was looking for this..
On GS2 it changes my MAC, however I can’t connect to any wifi network! It always say that the password is wrong.
Can I ask you what rom are you using?
Thanks in advance.
I had the same problem, but then i realized that the router was the issue. I found out that this works with router without password and frequency b and g , n does not support
Hope this helped !
Sent from my Nexus S using xda premium
I see, I was suspecting something like that.
Thanks mate.
could anyone explain how do you get the wifi password out of the ip address? i am a newb to this thing, and i would love to use school network or public
Well
There is a software for PC called backtrack where you can get the password from the router
But hacking with phone will be difficult, because the phone needs the suitable WIFI adapter for cracking the router!!
Sent from my Nexus S using xda premium
lol there is a file in /efs/imei/bt.txt
I think thats the Bluethoot mac address !!
Sent from my Nexus S using xda premium
with last CM7 it doesn't work!
In terminal it change but when I connect to my wifi, in my router I see the old MAC :-(
I just wanted to say thanks and offer some insight for anyone having trouble with this.
I was able to do this on my g2 and checking in the ActionTec router to verify. However, it would crash my ActionTec if I didn't time things very good.
Open Terminal.
Type "busybox ifconfig"
I was given results for rmnet0, I assume this is my phone's MAC, not my Wireless MAC. I turned Wi-Fi on and did ifconfig again.
I was given results for eth0.
I then set the eth0 with the method in the first post.
busybox ifconfig eth0 hw ether 00:11:22:33:44:55
Then, during an attempt to see these changes in my router, I was no longer able to access my router from my pc. (or from any device)
Then, I went back to wi-fi and it set my eth0 back to default again.
So, I turned wi-fi off, waited in emulator (until my router was fine again) and this time I :
had busybox ifconfig eth0 hw ether :etc: typed out but didn't press enter.
I turned wi-fi on and I kept pressing enter on my terminal until it stopped showing an error for "No such device"
This error exactly in terminal was:
ifconfig:STOCSIFHWADDR: No such device
As soon as my wi-fi actually opened and tried to get an IP, it set it at the perfect time. I was able to see my results in the devices table of my router as well as in ifconfig.
I'm sure there's a better way to do this for my situation/device but for now, I know this works for me.
Came back with more info for this method. It's not 100% by any means. Closer to 4/10 times it works.
I've tried a lot of testing with it so far on my home network.
I open terminal, su and type this in so it's ready:
busybox ifconfig eth0 hw ether 11:22:33:44:dd:ee
i submit it so I can track-pad up and get it easily.
I get the same error (no such device)
Then, i turn on wifi and immediately go back into terminal and press enter.
Then, up enter, up enter, up enter 5 times. It doesn't error after the 2nd or 3rd time but I do it a few more times because it seems to work better that way.
Then, I check the table and it shows connection type as network instead of wireless but I still have full internet access with the spoof'd mac.
Next test I cloned my gf's wifi mac while she was browsing on her phone.
I took control of the MAC and her device was no longer able to view websites.
I turned my wifi off and her device picked up where it left off, right away.
I will be doing some further testing throughout the week and try to report anything new/helpful.
Tested on HTC thunderbolt for Verizon and working!
I got it to do the commands but as soon as it changes the mac address it disconnects from the wifi and when it reconnects it changed my mac address back to normal.
Does not work
Hello,
After doing this, my mac was changed successfully.
I turned of / on wifi.
Followed the steps without being connected to any router/modem.
After my mac was changed, I tried to connect to my modem, but it kept scanning/connecting/disconnecting over and over again.
So when my mac is changed, I can't connect.
Any one knows a good way to fix this?
Cheers
I am using a Droid Razr and I found that to access the wifi mac i had to type
busybox iplink set tiwlan0
instead of wlan0 or eth0. BUT here is the next issue i came across. When I changed the mac it said
either "dev" is duplicate, or "00:00:00:00:00:00" is garbage
Ive tried searching for a solution but so far nothing
I don't want to permanently change my wifi mac just temp. Anyone else run into this?
btw im using android version 2.3.6 if it matters.
Thanks for any help at all! Its driving me crazy lol

[HOWTO] Team EOS & USB Tethering

Hello all,
I am unable to respond to the person requesting this help, so I thought I would post a howto. In order to get your Team EOS Xoom to do USB tethering, you need to do a few steps:
1) Install a kernel from their development thread
a) Download kernel from this thread: http://forum.xda-developers.com/showthread.php?t=1488059
2) Install the drivers for the kernel you just installed
a) Download both overlay revs and both driver revs from this thread: http://forum.xda-developers.com/showthread.php?t=1513490
b) Reboot into recovery
c) Flash in order: kernel, overlay rev 1, overlay rev 2, driver rev 1, drivers rev 2.
d) Reboot into EOS. After the updating Android message, reboot again for good measure.
You may have to repeat step 2)c) minus the kernel if your drivers are missing.
3) Standard steps for acquiring IP address from USB master.
a) Plug in your phone
b) On your phone, go to wireless and networks, and enable USB Tethering
c) On your Xoom, open terminal
d) su
e) dhcpcd usb0
f) setprop net.dns1 8.8.8.8
If you get an error about usb0, try usb1. If neither work, make sure your drivers are installed and working correctly.
If you need additional help, reply below and I will respond as I'm available.
Thanks to all you dev teams making dreams come true.
Hi gnet26
Many thanks for your PM and your post and thread here.
I will follow your instructions and try again once I get home and report back either way.
Many thanks again for your willingness to help out.
I'll post back on this thread. ( not my Q&A thread ) so it is all in the one place.
All the best,
Ben
Hi gnet26
You are a LEGEND !!! It WORKS !!!!!!!!!!! Woooo Hoooo.
I had forgotten just how much snappier and smoother USB Cable Connected Tethering is compared to WiFi Tethering.
Thank you BIG TIME !!!
One minor issue remains, which hopefully can be resolved.
=> no matter how I discconect - uncheck tethering on the phone or close the Terminal session or unplug the cables at either end, the Xoom freezes up and reboots ?!?!??!
Any idea how to ghet around or fix this ?
The phone itself is unaffected.
All the best,
Ben
ben ifin said:
Hi gnet26
You are a LEGEND !!! It WORKS !!!!!!!!!!! Woooo Hoooo.
I had forgotten just how much snappier and smoother USB Cable Connected Tethering is compared to WiFi Tethering.
Thank you BIG TIME !!!
One minor issue remains, which hopefully can be resolved.
=> no matter how I discconect - uncheck tethering on the phone or close the Terminal session or unplug the cables at either end, the Xoom freezes up and reboots ?!?!??!
Any idea how to ghet around or fix this ?
The phone itself is unaffected.
All the best,
Ben
Click to expand...
Click to collapse
Couple things. You don't have to mess with USB tether in network settings. That's to pass mobile data from xoom to a client. Also, the only driver you need is rndis_host.ko. The hard reboot is something wonky with the driver being used as a module. If I can find a way to cook it inside the kernel without breaking other things I will. Also, I'm pondering a helper app to manage usb1 and eth0 interfaces.
Ben,
I'm glad you got it to work! My Xoom also reboots when I unplug.
Bigrushdog,
If you need a Guinea pig for testing a kernel, pm me
The usb tethering checkbox step is on the phone side. Are you saying that step is unnecessary?
Also, what would the helper app do? Would it work like the auto-usbdrive mounter where it checks for rndis connection and automatically does a dhcpcd request and sets dns?
Thanks for the interest!
Bigrushdog,
Do you know how to make everything go through usb0? Things such as Google market downloads and vpn connection refuse to use the usb0 interface. Care to shed some light on the matter?
Thanks,
Gnet
Aml
gnet26 said:
Bigrushdog,
Do you know how to make everything go through usb0? Things such as Google market downloads and vpn connection refuse to use the usb0 interface. Care to shed some light on the matter?
Thanks,
Gnet
Click to expand...
Click to collapse
Ok I misunderstood you. Yes you have to tell the phone to start USB tether. First, rndis_host will always be on usb1. Usb0 is reserved by the system for complex reasons. And I'm working on the exact issue you describe. I've been busy learning new things the last couple week's and have been distracted. Basically, Android does not know to monitor these interfaces for a default tcpip route. Some smart apps like Dolphin find these routes on their own but the system does not. I think I can seamlessly add these interfaces to androids list without breaking anything. That would be the best solution. Otherwise, a small helper app can do it in the background. This applies to eth0 for ethernet and data dongles too.
Hi bigrushdog and Gnet
bigrushdog - massive thanks to you - without all your efforts this would never be happeneing !!
Same Google Market / Play Market issue here.
All the best,
Ben
Hmmmm ....... I wonder ......... if we use
su
dhcpcd usb1 [ instead of 0 ]
setprop net.dns1 8.8.8.8
will this still connect *and* make Google Market downloads and vpn connection functional ?
Ben
ben ifin said:
Hmmmm ....... I wonder ......... if we use
su
dhcpcd usb1 [ instead of 0 ]
setprop net.dns1 8.8.8.8
will this still connect *and* make Google Market downloads and vpn connection functional ?
Ben
Click to expand...
Click to collapse
...... well I can report that this does *not* work.
Ben
ben ifin said:
...... well I can report that this does *not* work.
Ben
Click to expand...
Click to collapse
This guy knows his stuff
http://forum.xda-developers.com/showpost.php?p=23299408&postcount=31
Look into that and report back
Success
I thought I would share with everyone what I did to get my 4G USB dongle to work. This dongle only requires the RNDIS drivers as it simply appears as an ethernet connection over USB. I had this working previously on a Tiamat 3.2 ROM, but until now I could not get it working. This may help others trying to use ethernet adapters.
I flashed BRD's Development Overlay Rev. 4 and rebooted.
I then plugged in my dongle through a USB host cable and waited for it to boot and connect.
Then in a terminal window
su
dhcpcd eth0
After this command is entered the IP address that is assigned to eth0 is displayed. I guessed that the gateway would be the first two digits of the assigned IP address followed by "0.1". If you know the gateway of this connection I would try substituting that in for the IP address below.
I then entered...
ip route add default via X.X.0.1
setprop net.dns1 8.8.8.8
Once I did all that the connection was up and working.
I hope this helps someone
[EDIT] Well it works for the most part. Web surfing, general data access and email work but both the Google Market and Amazon market fail to download applications over this connection.
For me it is still better than nothing.
Try adding in the busybox route command in the link in my post a couple posts up. It may help Android see the data path.
bigrushdog said:
Try adding in the busybox route command in the link in my post a couple posts up. It may help Android see the data path.
Click to expand...
Click to collapse
Are you referring to this?
/system/xbin/route del default
/system/xbin/route del default
/system/xbin/route add default gw $IPREMOTE dev ppp0
I tried simply entering those commands in the terminal window and they were not recognized. Is there something else I need to do?
Thanks!
He is using the route command from busybox. So try
busybox route
Or
/system/xbin/busybox route
bigrushdog said:
He is using the route command from busybox. So try
busybox route
Or
/system/xbin/busybox route
Click to expand...
Click to collapse
Ok thanks for the info, as I have told you I really am a newbie but I can follow instructions.
So I tried a few combinations and here are my results.
su
dhcpcd eth0
Responds with eth0 IP information
busybox route del default
Responds with "route:SIOCDELRT: No such process
busybox route add default gw $IPREMOTE dev ppp0
Responds with "route: resolving dev"
setprop net.dns1 8.8.8.8
This did not work, I did not have any connection. I was not sure if I should have done the setprop net.dns1 before the busybox commands so I rebooted and tried it this way...
su
dhcpcd eth0
Responds with eth0 IP information
setprop net.dns1 8.8.8.8
busybox route del default
Responds with "route:SIOCDELRT: No such process
busybox route add default gw $IPREMOTE dev ppp0
Responds with "route: resolving dev"
This did not work either.
I then went back, without a reboot and entered...
ip route add default via 50.9.0.1
After adding this command I can browse the internet and a few applications work such as WeatherBug, but it does not seem that anything else can see the connection (email, markets, touchdown, etc.). It is strange that WeatherBug can see the connection, but other apps like Accuweather could not.
So I rebooted again and tried it in this order...
su
dhcpcd eth0
Responds with eth0 IP information
ip route add default via 50.9.0.1
setprop net.dns1 8.8.8.8
busybox route add default gw $IPREMOTE dev ppp0
Responds with "route: resolving dev"
Same result, I can surf the web but nothing else sees the connection.
dev usb1
ppp0 is for something else
EDIT; and I'm not sure that will resolve it. Just throwing it out there
bigrushdog said:
dev usb1
ppp0 is for something else
EDIT; and I'm not sure that will resolve it. Just throwing it out there
Click to expand...
Click to collapse
Should I actually use eth0 then?
Do you think I need to do the IP route command as well or should this take care of it?
This may be a very stupid question but will this, or something like this work on EOS 4 (I'm on 177 but I'd do whatever to get this to happen).
Thanks

usb to ethernet adapter

Hi!
So I am in college and they do not allow more than one device to be connected over internet per person in a dorm, so i cannot set up any wireless routers. My iconia is running the jb cm10 preview port and i was wondering if a usb to ethernet jack would work and if so, which adapter should I buy?
any suggestions/ ideas would be appreciated
cullenmq1 said:
Hi!
So I am in college and they do not allow more than one device to be connected over internet per person in a dorm, so i cannot set up any wireless routers. My iconia is running the jb cm10 preview port and i was wondering if a usb to ethernet jack would work and if so, which adapter should I buy?
any suggestions/ ideas would be appreciated
Click to expand...
Click to collapse
I dont believe it would but im not sure how can they tell whos device it is? Cant you just spoof your mac address or use one device at a time or a vpn......
they could tell if more than 1 device is connected by doing a simple network scan and seeing that there was 2 ip addresses assigned to a dorm. they found my wireless router as soon as i plugged it in
cullenmq1 said:
they could tell if more than 1 device is connected by doing a simple network scan and seeing that there was 2 ip addresses assigned to a dorm. they found my wireless router as soon as i plugged it in
Click to expand...
Click to collapse
sorry theres ways to get around that but im pretty sure were not allowed to talk about it on the forums im nlt sure if a usb to ethernet adapter would work to me it seems drivers program or something would be missing
okay... does it involve external hardware or does the "other thing" involve using a wifi router b/c i cannot set up a wireless router as anyone with a wireless device will be able to see it. I know that the transformer infinity has built in ethernet adapter compatibility, but is that an android ics/jb thing or is it a manufacturer add-on?
cullenmq1 said:
okay... does it involve external hardware or does the "other thing" involve using a wifi router b/c i cannot set up a wireless router as anyone with a wireless device will be able to see it. I know that the transformer infinity has built in ethernet adapter compatibility, but is that an android ics/jb thing or is it a manufacturer add-on?
Click to expand...
Click to collapse
Haha i dont understand how they could detect where each device is coming from unless they have a separate wifi for each dorm or a different sub-net i know they could pick up another wireless router easily even if they were reading you ip that's easily spoofed even Mac address is via a proxy or vpn but anyways im pretty sure that's an manufacturer add-on ill look and let you now if i find anything the Acer might have it, if not im sure a dev could make it so somehow
This is straight quoting darkdragone make sure you thank him Here
not sure if it works with honeycomb, but on ICS I have used a usb ethernet adapter with the tablet, mind you that some applications dont work with it, but the browser and market place do. What you'll need to do first is have your tablet rooted, then download either android terminal emulator or Gscript lite (with gscript lite you can save the script for use again.) In the terminal you will want to run netcfg, this will show you all of your interfaces and will tell you if your usb to ethernet adapter is detected. If it is detected there will be an interface called usb and then a number aka usb0 or possibly even eth0. next you will want to take that interface and make sure it is up by running ifconfig usb0 up. next you'll need an ip address, if yours is assigned dynamically then run dhcpcd usb0 then setprop dns1 8.8.8.8 (or use whatever DNS server you wish). Now if you need a static address, such as 192.168.0.2 or something you would run ifconfig usb0 192.168.0.2. Also all of these commands will need root so make sure you type in su beforehand.
gears177 said:
Haha i dont understand how they could detect where each device is coming from unless they have a separate wifi for each dorm or a different sub-net i know they could pick up another wireless router easily even if they were reading you ip that's easily spoofed even Mac address is via a proxy or vpn but anyways im pretty sure that's an manufacturer add-on ill look and let you now if i find anything the Acer might have it, if not im sure a dev could make it so somehow
This is straight quoting darkdragone make sure you thank him Here
not sure if it works with honeycomb, but on ICS I have used a usb ethernet adapter with the tablet, mind you that some applications dont work with it, but the browser and market place do. What you'll need to do first is have your tablet rooted, then download either android terminal emulator or Gscript lite (with gscript lite you can save the script for use again.) In the terminal you will want to run netcfg, this will show you all of your interfaces and will tell you if your usb to ethernet adapter is detected. If it is detected there will be an interface called usb and then a number aka usb0 or possibly even eth0. next you will want to take that interface and make sure it is up by running ifconfig usb0 up. next you'll need an ip address, if yours is assigned dynamically then run dhcpcd usb0 then setprop dns1 8.8.8.8 (or use whatever DNS server you wish). Now if you need a static address, such as 192.168.0.2 or something you would run ifconfig usb0 192.168.0.2. Also all of these commands will need root so make sure you type in su beforehand.
Click to expand...
Click to collapse
Glad I was able to help lol. I'm currently trying to find out if a USB wireless will work to but haven't found much info other than drivers need to be in the kernel for it to work
Yeah, if u figure out the usb wireless adapter problem, let me know too pls. :thumbup:
Sent from my A500 using xda app-developers app

How do I assign a permanent static IP address to hotspot in Android 10

I would like to assign a permanent static IP address to hotspot in Android 10 (Unofficial LineageOS 17.1 for Natrium by LuK1337, rooted with Magisk v20.3 and updated to Jan 11, 2020 build).
Now whenever I turn on the hotspot, it assigns a different IP to hotspot, 192.168.43.xxx (this will be the gateway IP to other devices that connects to this hotspot).
Note: For simplicity, instead of connecting other devices to this hotspot, I'm just gonna find hotspot IP by running "ip r" on the phone itself.
On the phone, when I open Termux (have tried other Terminal app with the same results), and run, "ip r" and "ip a", I get:
Code:
:/ $ ip r
192.168.43.0/24 dev wlan0 proto kernel scope link [B]src 192.168.43.100[/B]
:/ $
:/ $ ip a
25: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 3000
link/ether 78:02:f8:f0:4d:87 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.[B]100[/B]/24 brd 192.168.43.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::7a02:f8ff:fef0:4d87/64 scope link
valid_lft forever preferred_lft forever
:/ $
Now this "src 192.168.43.100" will be different (e.g: 192.168.43.101, 192.169.43.102 etc) everytime I turn hotspot on and off... and I would like to assign a permanent static IP like ".100"
In LineageOS 16 I used the following workaround, which is no longer working in Android 10 (Unofficial LineageOS 17.1):
Code:
In the Termux (have tried other Terminal app with the same results):
(1)
su
mount -o rw,remount /vendor
nano /vendor/etc/init/hostapd.android.rc
and add:
on property:init.svc.hostapd=running
exec - -- /system/bin/sleep 2
exec u:r:magisk:s0 -- /system/bin/ip address add 192.168.43.[B]100[/B]/24 dev wlan0
Save the file.
mount -o ro,remount /vendor
and
(2)
su
mount -o rw,remount /
nano /etc/dnsmasq.conf
and add:
dhcp-host=78:02:f8:f0:4d:87,192.168.43.[B]100[/B]
Save the file.
Then set the permissions:
chown 0.0 /etc/dnsmasq.conf
chmod 0644 /etc/dnsmasq.conf
chcon u:object_r:system_file:s0 /etc/dnsmasq.conf
magiskpolicy "allow dnsmasq system_file file { read getattr open }"
magiskpolicy "allow dnsmasq system_file dir { search }"
mount -o ro,remount /
Any help is greatly appreciated, many thanks in advance.
I've got the same problem with my Pixel 3 running Android 10, also using Termux.
My use case is SSHing into the phone from my iPad to use VIM.
Previously, I used PDANet for its hotspot functionality, but it doesn't work anymore on my Pixel. Depending on your phone, you could give that a shot.
Unfortunately, starting with Android 9, the gateway is always set randomly. You cannot change it without editing the source code and building the firmware, but you can assign an additional static IP address through which you can connect to the phone. I'm not sure that this will help you, but you can see here three methods to solve this problem:
android.stackexchange.com/questions/213514/how-can-i-permanently-change-my-hotspot-tethering-ip-address
Personally, I use the first method and it is enough for my needs.
It got even worse. I'm not sure this is a thing since Android 11, but whenever I turn my Hotspot off and on again, it changes the last two segments of my gateway IP, so it's always 192.168.x.x. This sucks even twice, because now all static IPs of all clients need to be updated to get in the right scope for the subnet mask that is still 255.255.255.0.
Pretty ****ty move by Google. I wish there was a solution to this nonsense. I want a static gateway IP without root ... (I know, impossible)
Cis# said:
It got even worse. I'm not sure this is a thing since Android 11, but whenever I turn my Hotspot off and on again, it changes the last two segments of my gateway IP, so it's always 192.168.x.x. This sucks even twice, because now all static IPs of all clients need to be updated to get in the right scope for the subnet mask that is still 255.255.255.0.
Pretty ****ty move by Google. I wish there was a solution to this nonsense. I want a static gateway IP without root ... (I know, impossible)
Click to expand...
Click to collapse
You said without root it's impossible but can we do something with root so that we don't have to update gateway ip everytime hotspot is restarted?
Cis# said:
It got even worse. I'm not sure this is a thing since Android 11, but whenever I turn my Hotspot off and on again, it changes the last two segments of my gateway IP, so it's always 192.168.x.x. This sucks even twice, because now all static IPs of all clients need to be updated to get in the right scope for the subnet mask that is still 255.255.255.0.
Pretty ****ty move by Google. I wish there was a solution to this nonsense. I want a static gateway IP without root ... (I know, impossible)
Click to expand...
Click to collapse
Faced the same problem after my mobile got an update to Android 11.
Please let me know if you found any solution.
byquip said:
Faced the same problem after my mobile got an update to Android 11.
Please let me know if you found any solution.
Click to expand...
Click to collapse
legendofrj10 said:
You said without root it's impossible but can we do something with root so that we don't have to update gateway ip everytime hotspot is restarted?
Click to expand...
Click to collapse
I got close...used MacroDroid with root (Magisk) and I was able to create a macro that started the hotspot and then used secure settings to set the wlan0 IP to what I wanted using ifconfig. Using both ifconfig and a network scanner I confirmed the hotspot had the ip I wanted, but I was not able to actually use it for a stable connection - clients constantly dropped the connection.
I'm still on Android 8.1 beacause of this random hotspot IP address issue.
Is there any recent phone or ROM with a static IP address for its hotspot?
Not really THE solution, but I've had pretty good results serving data thru the phones hotspot to an old dd wrt router (set up as a "repeater bridge"). The router/repeater handles all traffic on a local network then looks to the hotspot for data. Basically, just like your home wifi, but swap your modem with the phone.
Behind the router, it functions like a "real" connection. All apps function, push notices come thru, smart TVs, and even Chromecast works! You can assign static IP on the virtual network.
Devices don't seem to notice the random IP changes between the hotspot and router. At the most, you may lose data for a second or two while it .. switches stuff? Idk... but other than a quick lag in chat, if that, you won't even notice anything happened.
A couple sidebars:
The old wifi b/g routers with ddwrt are cheap on ebay. Although, router throughput could be a limiting factor on network speeds. Not just the older wifi protocols, but running repeater mode sets router to half duplex.
With a lot of the older routers, a USB-to-5v cable works to power it from any USB port (charger, battery pack, accessory port). Ideal for hotel/dorm, work, rural or mobile living. Wherever you need a private, fully functional wifi connection.
In dd wrt setup, follow tutorials for repeater bridge setup, but leave the gateway and dns ip blank (all zeros).
Naturally, speed and ping depends on the cellphones signal strength.
I don’t have an Android phone any more, but I noticed on my family’s Pixels, PDANet gave gives out a consistent 192.168.1.XXX address. PDANet hotspots work like regular hotspots as far as I know, so it might be worth a shot for when you’re on the go without a router to use.
DMechnikov said:
I don’t have an Android phone any more, but I noticed on my family’s Pixels, PDANet gave gives out a consistent 192.168.1.XXX address. PDANet hotspots work like regular hotspots as far as I know, so it might be worth a shot for when you’re on the go without a router to use.
Click to expand...
Click to collapse
Good to know. I didn't even know pdanet was still around. I'll have to mess with it sometime and see what's up. It would be nice to have a static IP coming from the phone, just cause.
Are you talking about the free or a paid version (if there are still two versions)??
Right now I'm using a rooted Umidigi A7 Pro with a 'hotspot unlock' magisk module, coupled with the VPN Hotspot app. This setup allows me to have unlimited hotspot data, I believe stops reporting of hotspot activity back to the ISP, while tunneling the hotspot data thru my phone's VPN connection.
I live waaay out in the sticks of West Virginia. My only ISP option at this time is Hughesnet satellite, which is just THE worst connection on the face of the planet, not to mention pricey. Speeds is so slow, and ping so high, you can't stream media, play games, or use it for voice or FaceTime chats. Instead, I use the phone setup mentioned above.
Luckily, there is a sprint tower (now T-Mobile) near enough to get a bar or two in the window. I picked up an 850mhz band5 cell booster / repeater (actually on band 26, which is a subsection if band 5). Got it set up, now can use the device in-hand throughout my home and out on the porches. Also helped improve speeds, reduce ping, and stabilize jitter on the LAN.
Call of duty mobile pings around 60-80ms
My Metro by T-Mobile plan is $40 per month, no data caps, but no hotspot allotment either. With the rooted device, I routinely use 200+ gb per month of hotspot data on devices connected via the router/repeater in my home.
I've been running this setup for nearly a year now and not had any problems from my ISP.
OP, you might want to look at this solution.
Still having the same issue in 2023 on LineageOS 18.1 (Android 11).
Can't find out which of these classes in sources is responsible for address allocation.
cilyrik said:
OP, you might want to look at this solution.
Click to expand...
Click to collapse
Hi,
After two days of trouble, (and multiples flahing operations, and many other concerns, I found a compromise with the solutions given in your link. Only the first one worked on my rooted smartphone (magisk + rom stock doogee s86pro). I did not manage to remount in rw my partitions to modify the hostapd.android.rc file. So I decided to use the automation (MacroDroid in my case) of the first solution. It works perfectly with 2 macros :
macro #1
trigger = hospot on
action = ip address add 192.168.43.1/24 dev wlan0
and
macro #2
trigger = hospot off
action = ip address del 192.168.43.1/24 dev wlan0
That's all. ^^
* rooted phone required *

Categories

Resources