How To USB Tether (For Free). Now With Instructions for Ubuntu, Mac, and Windows. - EVO Shift 4G Themes and Apps

I am going to give instructions for setting up free USB tethering via Azilink for those using Ubuntu. This will work for other operating systems, but I will leave that up to others.
Notes:
* Unlike PDA Net and Easy Tether, this does not block certain websites (free versions) and does not cost money for a "full version".
* Unlike Wireless tether methods, this allows the battery to charge while tethering.
* This does not require root, but does require adb.
* It may seem complicated the first time, but it really is simple, with great results.
* I am currently using azilink to post this, so I know it works.
To begin:
INSTRUCTIONS FOR UBUNTU​
1. Make sure adb is installed.
2. Download Azilink and install on your phone.
3. To download and install OpenVPN on your computer. Open a terminal and enter
Code:
sudo apt-get install openvpn
4. Download this file and place it in your home directory.
5. In your computer terminal, enter
Code:
adb forward tcp:41927 tcp:41927
6. On the phone, make sure Azilink is running and make sure "Service active" is checked.
7. In your computer terminal, enter
Code:
sudo openvpn --configure ~/azilink.ovpn
8. You should now be online. Enjoy.
INSTRUCTIONS FOR OS X (MAC)​
Note: This may seem complicated at first, but only needs to be done once, after which, connecting is very simple. I have done this myself, and can confirm it does have rewarding results.
1. Make sure adb is installed.
2. Download Azilink and install on your phone.
3. Download and install OpenVPN on your computer.
(i) You will need to compile openvpn from source (not as hard as it sounds).
(ii) You need a C-compiler:
Download the xcode package from here.
You’ll need to register for an Apple Developer Connection account.
Once you’ve registered, login and click Download Software and then Developer Tools.
Find the Download link next to Xcode Tools (version) – CD Image and click it!
Find the downloaded package, doubleclick it and follow the installation instructions to install gcc and a host of other development applications.
(iii) Download OpenVPN, unzip, and in the terminal browse to the top level of the unzipped folder and enter
Code:
sudo ./configure
sudo make
sudo make install
When this finishes, you will have openvpn installed.
(iv) For an OpenVPN GUI, download and install TunnelBlick, which is free and open source.​
4. Download this file and place it in your home directory.
5. In your computer terminal, enter
Code:
adb forward tcp:41927 tcp:41927
6. On the phone, make sure Azilink is running and make sure "Service active" is checked.
7. Open TunnelBlick, and tell it to use as a configuration the downloaded file azilink.opvn.
Open the TunnelBlick details, and make sure "Set nameserver (alternate 1) is selected".
8. You should now be online. Enjoy.
INSTRUCTIONS FOR WINDOWS​
Note: I have not yet tried this, as I do not use windows. I know it can be done, but if I am missing anything, please let me know and I will add to the instructions.
1. Make sure adb is installed.
2. Download Azilink and install on your phone.
3. Download OpenVPN for Windows, and run the installer.
4. Download this file and place it in your home directory.
5. In your computer terminal, enter
Code:
adb forward tcp:41927 tcp:41927
6. On the phone, make sure Azilink is running and make sure "Service active" is checked.
7. Run OpenVPN, and use as a configuration, the downloaded file azilink.opvn.
8. You should now be online. Enjoy.
My method for simple startup.
Ubuntu: Make a script:
Code:
adb forward tcp:41927 tcp:41927
sudo openvpn --configure ~/azilink.ovpn
Save it as azilink, and place in ~/bin (if there is no such directory, make it yourself via mkdir ~/bin and add it to your path). Then in the terminal enter:
Code:
chmod a+x ~/bin/azilink
.
Now, all that needs to be done to go online is turn on azilink on the phone, and enter in the terminal:
Code:
azilink
Mac: Make a script:
Code:
adb forward tcp:41927 tcp:41927
Save it as azilink, and place in ~/bin (if there is no such directory, make it yourself via mkdir ~/bin and add it to your path). Then in the terminal enter:
Code:
chmod a+x ~/bin/azilink
Now, all that needs to be done to go online is turn on azilink on the phone, open TunnelBlick, and enter in the terminal:
Code:
azilink
.

I'm using wireless wired usb tether. I'm running wireless tether and am plugged into usb to charge the phone with the computer. You could probably do the same with a wall wart charger or cigarette lighter charger for the car. Yeah it may be kinda retarded this way but it's simple and works. If I wanted to move around with the laptop, I could just put the phone on the wall charger in the same room. I did this a year ago when I went on vacation with the gf. We each had our laptop and was using wifi from my phone instead of paying for wired internet at the hotel. It wasn't blazing fast but it worked good enough to surf the net minus anything streaming.

herbthehammer said:
I'm using wireless wired usb tether. I'm running wireless tether and am plugged into usb to charge the phone with the computer. You could probably do the same with a wall wart charger or cigarette lighter charger for the car. Yeah it may be kinda retarded this way but it's simple and works. If I wanted to move around with the laptop, I could just put the phone on the wall charger in the same room. I did this a year ago when I went on vacation with the gf. We each had our laptop and was using wifi from my phone instead of paying for wired internet at the hotel. It wasn't blazing fast but it worked good enough to surf the net minus anything streaming.
Click to expand...
Click to collapse
There are four reasons I do not do it that way:
1. I build my computers, and do not put wireless cards in them.
2. I can crack anyone's WEP in about 15 minutes.
3. Having done that in the past with my G1, it destroyed my battery (had to buy a new one).
4. I get download speeds of around 1Mb/s with azilink.
Thanks for the tip though, it may help someone on here.

cloverdale said:
3. Having done that in the past with my G1, it destroyed my battery (had to buy a new one).
Thanks for the tip though, it may help someone on here.
Click to expand...
Click to collapse
This. My hero's battery was toast after about 4 months of doing that every day. The problem is that using wireless tether eats the battery up faster than it can charge, which is not a good thing. Not to mention the battery/phone gets HOT. Which is also very not good. I went from maybe 10 hours of battery life (occasional texting, facebook once or twice an hour maybe) to draining the battery in less than 4 with slightly more use.

Testing this asap.

SirRipo said:
This. My hero's battery was toast after about 4 months of doing that every day. The problem is that using wireless tether eats the battery up faster than it can charge, which is not a good thing. Not to mention the battery/phone gets HOT. Which is also very not good. I went from maybe 10 hours of battery life (occasional texting, facebook once or twice an hour maybe) to draining the battery in less than 4 with slightly more use.
Click to expand...
Click to collapse
This is true.
But if you have no other option BUT wireless tether (for example the rom you are using is currently so bleeding edge none of the other options work) you can just install setcpu or something similiar and create a screen off profile that keeps you max clock speed much lower. For example, on my heroc, my screen off would be 176/245 - min and max - after trial and error I came to the conclusion that this effectively reduces ALL heat issues caused by wireless tether. Even makes battery life manageable if you can't charge it at the time.
Just an FYI for anybody that's ever in a tight spot. Personally I prefer the native tether option available in AOSP roms, but you never know when you're gonna be in a bind. Seems like every new "wave" of roms results in one or the other working. Lots of times in alpha and early beta builds it's one or the other, it seems. Kernel issues the majority of the time, I believe, but that's neither here nor there, now is it.

Using this now and still horrible for streaming video. Are all tethering apps destined to be incapable of streaming? =(

Jeezimus said:
Using this now and still horrible for streaming video. Are all tethering apps destined to be incapable of streaming? =(
Click to expand...
Click to collapse
Are you still going through the sprint proxy?

Tether
cloverdale said:
Are you still going through the sprint proxy?
Click to expand...
Click to collapse
Hey thanks for posting this. This was needed. However, I am newbie to andriod.
Can you please tell me what do you mean by "place it in home directory". Phones directory or computer??? Where are these codes typed? In program with spaces included?..Do you have to do this all everytime to connect net?

cloverdale said:
Are you still going through the sprint proxy?
Click to expand...
Click to collapse
I am as of now but I've been getting much better speeds as of late with Azilink. It may have just been a fluke that one night. The extra step of the adb code is a bit of a pain, but definitely worth it for streaming. Much appreciated for the share =)

gangbang72 said:
Hey thanks for posting this. This was needed. However, I am newbie to andriod.
Can you please tell me what do you mean by "place it in home directory". Phones directory or computer??? Where are these codes typed? In program with spaces included?..Do you have to do this all everytime to connect net?
Click to expand...
Click to collapse
The home directory is your user directory on your computer. The commands are typed in your computer terminal (or command window for windows users). You will have to type steps 5 and 7 each time you connect. I made a script that allows me to connect by simply typing azilink. I will add this to the OP later today.

Still working on getting this to work.
Sent from my SPH-M920 using Tapatalk

jes24cap said:
Still working on getting this to work.
Sent from my SPH-M920 using Tapatalk
Click to expand...
Click to collapse
Where are you having problems?

wired tether for root users is a lot simpler if you have root. And it barely gets hot, unlike wireless tether. And the latest wireless tether can use WPA2 by the way instead of WEP

I got everything installed on my windows 7 laptop & the app on my phone but couldnt get this to work

draztikrhymez said:
I got everything installed on my windows 7 laptop & the app on my phone but couldnt get this to work
Click to expand...
Click to collapse
I have never used it on windows, but I can try to help. Where are you having problems?

I'm trying to get this setup on my Mac, any help? I have installed Tunnelblick as the OpenVPN client on my computer, it connects and everything says its connected but no internet. Help please?
Sent from my PG06100 using XDA App

foolforfood said:
I'm trying to get this setup on my Mac, any help? I have installed Tunnelblick as the OpenVPN client on my computer, it connects and everything says its connected but no internet. Help please?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
With a MAC you also need to manually set the nameserver to 192.168.56.1 (the phone's NAT IP address). I am not sure how to do this with OSX, but I am sure a quick Google search will tell you.

cloverdale said:
I have never used it on windows, but I can try to help. Where are you having problems?
Click to expand...
Click to collapse
I am not getting a network connection to show up @ all. I have the app running on phone too

danaff37 said:
wired tether for root users is a lot simpler if you have root. And it barely gets hot, unlike wireless tether. And the latest wireless tether can use WPA2 by the way instead of WEP
Click to expand...
Click to collapse
How do i get wired tether to work? It connects, but says no internet connection.

Related

[Q] Anyone been able to ssh remotely (not with wifi) to their Thunderbolt?

ssh from your computer over wifi is easy, but doing it over LTE seems to be problematic if not impossible (with the phone acting as the server). It doesn't look like we're given a public ipv4 address and they're just doing an NAT magic to translate it into an ipv4 addy on their end, but it doesnt necessarily link back to you always (if you check your ip over a browser).
With my home connection being SOL as far as having ipv6 thanks to craptactular att "we dont need no ipv6 for our customers," I don't see any possible method to reach the phone.
Blackberries had a static ipv4 (when I had one) but I know that's a dying thing for new phones with ipv4's days numbered.
I know there's other solutions (like vpn), but obviously that's not the same.
i have not had any luck either and that makes sense now cuz i remember having issues with trying to run a server on my phone . damn this is annoying.
I cant get ANY data to work with the exception of once and that was only searching google.com but no other website would work... any ideas anyone?
ddarvish said:
i have not had any luck either and that makes sense now cuz i remember having issues with trying to run a server on my phone . damn this is annoying.
I cant get ANY data to work with the exception of once and that was only searching google.com but no other website would work... any ideas anyone?
Click to expand...
Click to collapse
Nope, not really. Probably could set up a vpn server on my VPS server and and vpn into that to get around the NAT though and do some work in iptables for routing. That was the only thing I could come up with.
Hi,
I know that it was stated that "ssh from your computer over wifi is easy," but this process is not immediately obviously to me. I have succeeded in sshing with the phone, but not into it. Can someone explain how to ssh into the phone (from a computer with wifi that the phone is also connected into)?
Thank you,
Michael
mcoughlin said:
Hi,
I know that it was stated that "ssh from your computer over wifi is easy," but this process is not immediately obviously to me. I have succeeded in sshing with the phone, but not into it. Can someone explain how to ssh into the phone (from a computer with wifi that the phone is also connected into)?
Thank you,
Michael
Click to expand...
Click to collapse
You need an ssh server on your phone. You can either use something like dropbear, which comes by default on most AOSP ROMs and you can figure out how to set it up by reading this or you can use something like sshdroid, which is a GUI app.
I'd be willing to bet that verizion simply blocking ports and not giving you a real ip
Sent from my ADR6400L using XDA App
movielover76 said:
I'd be willing to bet that verizion simply blocking ports and not giving you a real ip
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
Unless you're roaming, you're always behind NAT and an IP within verizon's network. No one is going to give you a real and static ipv4 address nowadays regardless of the mobile network, there just arent enough left. IPv6 however I do not know if it routes out or not, haven't tested yet and the only place that I have an ipv6 address is my remote server so it doesn't do that much good usability wise to me.
Thank you for the really helpful comment! Now for another silly question: imagine the case where you have your phone connected by USB to your computer. Is it still possible to "ssh" into it using one of the methods described above?
mcoughlin said:
Thank you for the really helpful comment! Now for another silly question: imagine the case where you have your phone connected by USB to your computer. Is it still possible to "ssh" into it using one of the methods described above?
Click to expand...
Click to collapse
if you have the usb cable connected, you could just use adb and type "adb shell"
Otherwise, I don't think so because you aren't registering a network address via usb.
So once you are into your phone with adb, is it possible to run a program like ConnectBot to ssh out from the phone through your computer's adb shell?
mcoughlin said:
So once you are into your phone with adb, is it possible to run a program like ConnectBot to ssh out from the phone through your computer's adb shell?
Click to expand...
Click to collapse
Yes, if you mean ssh into your computer's sshd (ssh server).
ssh client (phone) → ssh server (computer)
or you can go the other way as well if you have an ssh server on your phone.

[DEV] Other ways to enable the hotspot? or tethering w/out market apps? (w/out root)

i know modifying the services.jar is done when rooted but i have been messing with QPST pretty much all day and have found quite a few little tweaks that can be made. anyway, i noticed under multiple tabs there are options for tethering. when i get back, im going to back up all my settings and then change some things to see what i can come up with.
can anyone with and intimate knowledge of QPST and our phones chime in here? is there anyway at least the wired tethering can be modified w/ QPST to be unlocked? just a thought because the market apps have to do something not root related.
I don't know about actual tethering (which gives your PC an IP address), but I've seen a lot of posts on XDA and other forums on how to browse the web using a proxy setup. I've been doing this for the last few days that I've owned the phone.
In essence, it involves:
1. Running a proxy server app on your phone. I use JADS internet sharer, in SOCKS mode. Proxoid is another HTTP proxy server
2. Connecting phone to the computer using USB
3. Putting the phone in HTC Sync mode (I couldn't get adb to work in charge only mode)
4. Doing adb port forwarding on your computer: adb forward tcp:12345 tcp:1080
5. Configuring firefox to use the SOCKS v5 proxy localhost:12345 (or HTTP/HTTPS proxy if you run proxoid)
6. Configuring the network.proxy.socks_remote_dns custom property value to "true" in firefox's advanced configuration (type about:config in the address bar, and type "dns" in the filter textbox)
After this, I can browse the internet all I want. And that's really all I need at this time. I'd like to have the computer route all internet through this proxy server, but I'm going to look into it later.
I suspect the market apps are doing something VERY similar. They all have a client component you have to install on your PC, maybe the client is a "dummy" network interface that routes all traffic through a similar port forwarding setup.
ProcessorHog said:
I don't know about actual tethering (which gives your PC an IP address), but I've seen a lot of posts on XDA and other forums on how to browse the web using a proxy setup. I've been doing this for the last few days that I've owned the phone.
In essence, it involves:
1. Running a proxy server app on your phone. I use JADS internet sharer, in SOCKS mode. Proxoid is another HTTP proxy server
2. Connecting phone to the computer using USB
3. Putting the phone in HTC Sync mode (I couldn't get adb to work in charge only mode)
4. Doing adb port forwarding on your computer: adb forward tcp:12345 tcp:1080
5. Configuring firefox to use the SOCKS v5 proxy localhost:12345 (or HTTP/HTTPS proxy if you run proxoid)
6. Configuring the network.proxy.socks_remote_dns custom property value to "true" in firefox's advanced configuration (type about:config in the address bar, and type "dns" in the filter textbox)
After this, I can browse the internet all I want. And that's really all I need at this time. I'd like to have the computer route all internet through this proxy server, but I'm going to look into it later.
I suspect the market apps are doing something VERY similar. They all have a client component you have to install on your PC, maybe the client is a "dummy" network interface that routes all traffic through a similar port forwarding setup.
Click to expand...
Click to collapse
does easytether have a pc client? never tried it so i really dont know but i think your right because in the free version of easytether its web ports only and the paid version, all ports are working (gaming, messaging, etc....).
I've tried the Easytether paid version and it works great.
ydoucare said:
I've tried the Easytether paid version and it works great.
Click to expand...
Click to collapse
i've used this before.. good stuff
ydoucare said:
I've tried the Easytether paid version and it works great.
Click to expand...
Click to collapse
never said it didnt work. that's not the point of this thread.
ydoucare said:
I've tried the Easytether paid version and it works great.
Click to expand...
Click to collapse
Over wifi? Also, will this work for computers that can only join a secure network? (not adhoc) [if wifi is avail]
I only need to tether when on a job and there network is down or something and I may need to get on my laptop for a brief amount of time would this easytether work for me.
this should be in Q&A or general. you are not developing anything with your op so it does not belong here please pm a mod to move
Or merge with thread WIP DEV hotspot unlock?
BANG! from my shooter...

SSH server

I did some searching, and was unable to find a working ssh SERVER for the rezound. Has anyone done this before? I am interested in setting up a proxy tunnel through my phone. I tried SSHDroid but it doesn't seem to be working for me.
Thanks
ES file explorer has this built in. I haven't really tried it, but it may be worth checking into.
I have ES explorer, but I don't see an ssh server anywhere
trud9340 said:
I have ES explorer, but I don't see an ssh server anywhere
Click to expand...
Click to collapse
That's because I was having a momentary lapse of reason. I was thinking FTP and steered you wrong. Sorry man.
Look for the app that installs linux on your phone then install an ssh server from within the linux chroot. I forget what the app name is because I'm in the middle of flashing roms
What exactly does the Linux Installer do? Create a virtual linux instance, running under the current ROM?
it sets up a chroot environment and installs a full blown Linux OS in your phone (I think the only two choices are Debian and Ubuntu ATM) minus the X Server so it's only the CLI. It may be too convoluted for it to actually work but it's worth a try.
What your looking for is sshdroid its on the play store. I also believe you need to be rooted for it to function
seeker160 said:
What your looking for is sshdroid its on the play store. I also believe you need to be rooted for it to function
Click to expand...
Click to collapse
The OP tried that....
trud9340 said:
I tried SSHDroid but it doesn't seem to be working for me.
Click to expand...
Click to collapse
I gave it a shot and it didn't work for me either. I'm rooted. It gave some quick error that looked like a invalid options screen, but it went by very fast.
Sshdroid seems to start successfully, but when I attempt to ping or ssh to the provided ip address, it doesn't respond.
Sent from my ADR6425LVW using XDA
With your phone browser, try: http://www.whatismyip.com/ and see if that matches the same IP you think it is.
I got nothing but an error when I tried it. Came to a screen that said revert, .... and adfree. Adfree took you to the market pro version to buy. I think the middle option was cancel. It had an options error displayed quickly on the screen but it didn't stay long.
Were you on wifi or 4g? I only had it work on wifi. The 4g ip4 address isn't publicly routable. I heard the ipv6 address is but i couldn't get that one working either.(Might of been the network I was trying from though or the program I was using for ssh)
Forgot about that. I remember trying to do this with a 4G Hotspot. Even though you have an outside IP, traffic is not allowed back in. For a while when I got it, you couldn't even do a VPN connection with it... kind of useless for a business tool, but they ended up fixing that.
I tried both on WiFi and 4G. They both give me different ips, and for both, I tried the suggested IP, and also the IP thats provided by whatismyip.com.
Seems I'm out of luck. I would have thought that with root, something like this would have been done by some nerd (like me) by now.
trud9340 said:
I would have thought that with root, something like this would have been done by some nerd (like me) by now.
Click to expand...
Click to collapse
it is not the phone, it is the network. Wifi should work. VNC server works.
Via Rezound using XDA Premium
As someone else mentioned you can't connect to your phone while you're on Verizon's network, because IIRC they're actually "private" IPs but on a huge (NAT'd) network. So you can only really make connections to your Rezound via wifi or somehow setup a reverse connection where the phone initiates the connect. If I understand everything correctly, the problem is you're essentially behind Verizon's firewall which only allows incoming connections from certain IPs or one that were originating from the phone itself.
QuickSSHd works fine for me over WiFi.
Its widget shows current IP, which is convenient.
I'm rooted, of course.
when running on WiFi, you need to poke a hole in your routers firewall to let the ssh traffic into the ip used by your phone.
otherwise, when on the same network as the phone, use the internal ip address of the phone... go to WiFiSettings-> Advanced-> and read the line under 'IP address' should say like 192.168.x.x or 10.x.x.x or 172.
trud9340 said:
I tried both on WiFi and 4G. They both give me different ips, and for both, I tried the suggested IP, and also the IP thats provided by whatismyip.com.
Seems I'm out of luck. I would have thought that with root, something like this would have been done by some nerd (like me) by now.
Click to expand...
Click to collapse
These "apps" are just wrappers for dropbear SSH Server, which is free. You might be able to build it yourself, but, frankly, dropbear sucks.
Try the Linux CHROOT environment. You'll get OpenSSH which is better than the dropbear SSH server that these "apps" use.
Not only that, but the OpenSSH route allows you to use SSHFS, which will allow you to mount your rezound over wifi as a hard drive wirelessly.
So, man up, and choose Linux ;-)
I'll dig up some thinks for you in a moment.
Tried lildebi and the ubuntu methods and neither works as directed. Going to take a closer look later.
Lildebi fails with execution when it tries to create the file system and the ubuntu process uses an image that is too large for vfat. Going to try to cook an ubuntu filesystem that is 1.5gb and see if I can move on from there.

[Q&Soln] USB tethering creates endless new "Windows networks"

Whenever I tether my laptop via the USB cable it takes a long time for the laptop to connect and when it does, it says "Connected to Network X", where X is a number. Everytime I reconnect via USB X increases by 1 so the last time I did it I was on Network 43!!!!! I accept that this could be in part a windows thing and not a GS3 thing BUT when I connect via a Wifi Hotspot it connects really really quickly and always says I am connected to AndroidAP. Its as if the USB tethering firmware is
Therefore connecting via hotspot seems much more stable and smooth however I was under the impression that the laptop internet speed will be quicker using USB tether rather than wifi and as I primarilly use my SGS3 as my home broadband connection I want to try and configure it to get the fastest speed on my laptop as possible. If I do an internet speed check on my SGS3 while my laptop is tethered the phone connection is always faster than the doing the same on the laptop. I guess this should be perhaps expected but as much as 4Mbits/s. I.e My phone was getting speeds of 6Mbits/sec but without having any apps open on the phone, my laptop would only get 2Mbits/s????
Any advice?
Ginyons said:
Whenever I tether my laptop via the USB cable it takes a long time for the laptop to connect and when it does, it says "Connected to Network X", where X is a number. Everytime I reconnect via USB X increases by 1 so the last time I did it I was on Network 43!!!!! I accept that this could be in part a windows thing and not a GS3 thing BUT when I connect via a Wifi Hotspot it connects really really quickly and always says I am connected to AndroidAP. Its as if the USB tethering firmware is
Therefore connecting via hotspot seems much more stable and smooth however I was under the impression that the laptop internet speed will be quicker using USB tether rather than wifi and as I primarilly use my SGS3 as my home broadband connection I want to try and configure it to get the fastest speed on my laptop as possible. If I do an internet speed check on my SGS3 while my laptop is tethered the phone connection is always faster than the doing the same on the laptop. I guess this should be perhaps expected but as much as 4Mbits/s. I.e My phone was getting speeds of 6Mbits/sec but without having any apps open on the phone, my laptop would only get 2Mbits/s????
Any advice?
Click to expand...
Click to collapse
It does not related to Device problem.
It related to Windows,your computer create a new network when each time you connect to internet.
This may due to Firewall,Antivirus etc..
Are there any apps out there which are better than the stock USB tethering method. I do get slightly faster speeds on the laptop when USB tethered but the Windows network methodolgy seems unsatble compared with the wifi hotspot method
I was suffering the same and finally found a solution for this (at least on my S2).
It requires root, plus a kernel that supports init.d scripts (or running a script yourself every time you start the phone and will want to tether before restarting).
Just run this script:
Code:
chmod u+w /sys/module/g_android/parameters/dev_addr
echo 5a:xx:xx:xx:xx:xx > /sys/module/g_android/parameters/dev_addr
chmod u-w /sys/module/g_android/parameters/dev_addr
Just replace xx's with whatever hex values (0-9 or a-f) you want. Example: 5a:10:20:30:40:50
Windows detects the network you're connecting to by identifying the MAC address of the gateway. It can then know whether you're connecting to your home router (safe), an internet cafe (public), etc.
Whenever it finds a gateway whose MAC address is not recorded yet, it will state it's an unknown network, ask you what type is it (home / public), and assign a new number to it.
The thing is that android (or at least mine) is generating a completely random MAC address for itself whenever tethering is turned on, and naturally that will be different every time.
If you run those commands above, you're overriding that randomness and the device will start having always that MAC address and Windows will remember you're connecting to the same gateway.
PS: This is obviously dependent on whether the kernel you're using includes that /sys/module/g_android/parameters/dev_addr file. I'm inclined to think it's standard, but I'm not sure.
I'm having the same "problem".
Is there any other (nicer) way to permanently disable that random MAC generation? Other than using the method Tungstwenty explained above. Does anyone know why is that android "feature" even implemented, it doesn't make much sense to me.
Has anyone else figured out any solutions to this besides running a script everytime you boot? Seems kinda crazy to have to go to that extent for something that should be standard...
^ Exactly. Any updates yet?
This thread should be moved to general android (not device specific)
Report it via report button .
jje
ketanmatrix said:
This thread should be moved to general android (not device specific)
Click to expand...
Click to collapse
I can confirm that the same issue happened on my new Xperia Z, and the solution I posted above has also solved it.
The new device was even recognized by Windows as the already identified router, since I reused the same value from the previous device.
So I agree it's a cross-device issue with apparently the same solution, at least in a few of them.
Tungstwenty said:
I can confirm that the same issue happened on my new Xperia Z, and the solution I posted above has also solved it.
The new device was even recognized by Windows as the already identified router, since I reused the same value from the previous device.
So I agree it's a cross-device issue with apparently the same solution, at least in a few of them.
Click to expand...
Click to collapse
reported it as bug to google! hope it goes away in jb 4.3
anyway running that script didnt help on xperia z connecting to windows 8 pro
Moved to Android Q&A
Tungstwenty said:
I was suffering the same and finally found a solution for this (at least on my S2).
It requires root, plus a kernel that supports init.d scripts (or running a script yourself every time you start the phone and will want to tether before restarting).
Just run this script:
Code:
chmod u+w /sys/module/g_android/parameters/dev_addr
echo 5a:xx:xx:xx:xx:xx > /sys/module/g_android/parameters/dev_addr
chmod u-w /sys/module/g_android/parameters/dev_addr
Just replace xx's with whatever hex values (0-9 or a-f) you want. Example: 5a:10:20:30:40:50
Windows detects the network you're connecting to by identifying the MAC address of the gateway. It can then know whether you're connecting to your home router (safe), an internet cafe (public), etc.
Whenever it finds a gateway whose MAC address is not recorded yet, it will state it's an unknown network, ask you what type is it (home / public), and assign a new number to it.
The thing is that android (or at least mine) is generating a completely random MAC address for itself whenever tethering is turned on, and naturally that will be different every time.
If you run those commands above, you're overriding that randomness and the device will start having always that MAC address and Windows will remember you're connecting to the same gateway.
PS: This is obviously dependent on whether the kernel you're using includes that /sys/module/g_android/parameters/dev_addr file. I'm inclined to think it's standard, but I'm not sure.
Click to expand...
Click to collapse
i have rooted htc desire with CM 7.2.0.1... aaaand.. i no have g_android folder.. but i found the dev_addr file in sys/module/u_tether/parameters/dev_addr ... my question.. that file its same? or better when i dont toutch this file?
ktomi22 said:
i have rooted htc desire with CM 7.2.0.1... aaaand.. i no have g_android folder.. but i found the dev_addr file in sys/module/u_tether/parameters/dev_addr ... my question.. that file its same? or better when i dont toutch this file?
Click to expand...
Click to collapse
From the path ("...tether...") it's likely that it might be the right one for your device.
Simply try running the commands manually from an ADB shell and seeing if it works for you. If it does, put it on an init script. If not, it should be gone after a reboot.
A possible solution
For Windows to recognize your mobile device as the same first one needs to create a bridge in Windows 7.
Open Network Connections by clicking the Start button, and then clicking Control Panel. In the search box, type adapter, and then, under Network and Sharing Center, click View Network Connections.
Hold down the Ctrl key and Select internet connection from your android phone with your alternate connection you usually use. If you use only your android phone for internet, just select the mobile device.
Hold down ALT to reveal Advanced Menu and click Bridge Connections. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
You should now have a new network type named "Network Bridge" created.
Leave this internet bridge on your system.
Now whenever you connect your android phone, it will show up as the same network connection always. This will stay so even after you restart your system.
maxmumbai said:
For Windows to recognize your mobile device as the same first one needs to create a bridge in Windows 7.
Open Network Connections by clicking the Start button, and then clicking Control Panel. In the search box, type adapter, and then, under Network and Sharing Center, click View Network Connections.
Hold down the Ctrl key and Select internet connection from your android phone with your alternate connection you usually use. If you use only your android phone for internet, just select the mobile device.
Hold down ALT to reveal Advanced Menu and click Bridge Connections. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
You should now have a new network type named "Network Bridge" created.
Leave this internet bridge on your system.
Now whenever you connect your android phone, it will show up as the same network connection always. This will stay so even after you restart your system.
Click to expand...
Click to collapse
Hey MaxMumbai.....
what about windows 8.1.....? The right click on the network adapter in question in win 8.1 reveals 'Bridge connections' in the menu.
Can you make this much clearer please "Hold down the Ctrl key and Select internet connection from your android phone with your alternate connection you usually use. If you use only your android phone for internet, just select the mobile device."
You need at least 2 LAN connections to make a bridge so how can I only select my mobile device connection....? This is what I have in my adapters panel :
Bluetooth Network Connection .... Not ConnectedX
Ethernet.... Network cable unpluggedX
Local Area Connection..... Remote NDIS based internet sharing device (this is my tether)
WiFi... Not Connected X
Can you please explain where I make the bridge....?
Cheers
Ginyons said:
Whenever I tether my laptop via the USB cable it takes a long time for the laptop to connect and when it does, it says "Connected to Network X", where X is a number. Everytime I reconnect via USB X increases by 1 so the last time I did it I was on Network 43!!!!! I accept that this could be in part a windows thing and not a GS3 thing BUT when I connect via a Wifi Hotspot it connects really really quickly and always says I am connected to AndroidAP. Its as if the USB tethering firmware is
Therefore connecting via hotspot seems much more stable and smooth however I was under the impression that the laptop internet speed will be quicker using USB tether rather than wifi and as I primarilly use my SGS3 as my home broadband connection I want to try and configure it to get the fastest speed on my laptop as possible. If I do an internet speed check on my SGS3 while my laptop is tethered the phone connection is always faster than the doing the same on the laptop. I guess this should be perhaps expected but as much as 4Mbits/s. I.e My phone was getting speeds of 6Mbits/sec but without having any apps open on the phone, my laptop would only get 2Mbits/s????
Any advice?
Click to expand...
Click to collapse
You can try this if you don't mind the network icon not showing that you're connected.
Open Registry Editor ( Windows key + R to bring up the Run dialog, then type regedit and press Enter ).
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}.
There are numbered subkeys starting with 0001. Look in each subkey in descending order for the one with the DriverDesc value having your smartphone's RNDIS driver name (same name shown in your Network Connections view as the "Connect using" value).
Once located, create a new DWORD (32-bit) Value.
Enter the name as *NdisDeviceType (remember to include the asterisk sign * in front).
Edit the newly created DWORD value and enter the value data as 1 (Base choice doesn't matter). Click OK.
Once done, disable and re-enable usb tethering
You will no longer get a prompt asking for network location whenever you connect your smartphone, but you will still get the prompt when connecting to other devices.
Important Note: When you are only connected to your smartphone, your computer's network icon will continue to show that you are not connected to any network. However, the internet will still work fine.
I just found an easier way to avoid windows (10) to generate a new network number and reset the settings:
Tether your phone using USB, then:
Open device manager and find "Remote NDIS based Internet Sharing Device"
Then go to properties, advanced, select network address and assign a value.
That's it.
Zibri said:
I just found an easier way to avoid windows (10) to generate a new network number and reset the settings:
Tether your phone using USB, then:
Open device manager and find "Remote NDIS based Internet Sharing Device"
Then go to properties, advanced, select network address and assign a value.
That's it.
Click to expand...
Click to collapse
This seems to work, as long as you don't restart your PC. After every restart it still counts 1 Number up.
Still a neat trick as long as the PC keeps running, thanks for posting it :good:
I am still searching for a better one....

Tethering restriction solved!!

So I had hit the tethering limit and like the tenacious bastard I am, spent the last 4 hours trying to figure out a workaround. At last, success!!
This workaround requires root, and wifi tether router from the play store.
I suggest making a backup before doing this, and am in no way responsible for bootlooped or bricked devices.
Connect your to your phone via ADB and type
Code:
adb shell
su
settings put global tether_dun_required 0
You should get a SU prompt on your phone after typing su, Grant permission before continuing. Reboot.
Open wifi tether router and configure as follows
Interface-wlan0
Method-2 -Android version 4.2 or higher
No firmware reload UNCHECKED
Keep screen on CHECKED
Prevents standby CHECKED
That should be all. I'm back to tethering unrestricted, hopefully it works for you guys too.
**** disregard. I should have tested further before posting in excitement. So it seems T-Mobile notices when you are on speedtest.net and will unrestrict you for that even if you hit your tether limit. Gahhh! This is so frustrating, and I'm tired as hell. You win today T-Mobile...well played.
LvDisturbed1 said:
**** disregard. I should have tested further before posting in excitement. So it seems T-Mobile notices when you are on speedtest.net and will unrestrict you for that even if you hit your tether limit. Gahhh! This is so frustrating, and I'm tired as hell. You win today T-Mobile...well played.
Click to expand...
Click to collapse
Use a vpn service like private internet access in your connected device and you should be good. They never used to count data for my tablets using the method described above only if I used my loc. Now it seems like they are figuring out the user agents of tablets on counting data on those. With my vpn active on my tablet the tethering data doesn't change in my phone.
Gotta test before you post, man. You got us all excited.
I use Foxfi version 2.17.2 on my phone and PdaNet on my computer. Connect my phone via usb cable, and bam, works just fine. I have been tethering for months like this, unlimited.

Categories

Resources