yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] droidgirly:
After lots of tinkering I finally got this to work. For some reason, it will not work on either IPV4 or IPV6, I have to select the multi selector 4/6 otherwise, some websites I go to, redirect to that standard t-mobile page.

I was 100% virgin to modding any sort of android kernal anything, involving rooting, ect, I found a handy app right off in the play store, installed it, followed the directions to root my phone, worked the first time, followed this thread, and it sorta worked right off, just had to tinker with the APN settings
[Nexus 5 Q&A, Help & Troubleshooting] droidgirly:
Nexus 5 & T-Mobile Teather/Hotspot feature

Okay, after tons and tons of experimentation, I finally figured out EXACTLY how T-Mobile blocks teather hot spot service. It's STRICTLY done thru UserAgent tracking. Therefore, you DO NOT need to root your device, you DO NOT need to unlock the bootloader, you DO NOT need to edit or modify your phone in any manner, nor do you need to install PDANET, Fox Fi, or any other application. Any and every device right out of the box should be able to connect to the default teather/hotspot feature. The only thing you have to do is custom set every browser you connect to the internet with and custom set it's user agent to "GOOGLE BOT" and it will pass all packets right on thru at full speed. Chrome and Firefox have settings for this, but I've notice Internet Explorer requires no setting it all, works fine with the teather. So for all of you who have T-Mobile and are pulling your hair out, enjoy! I also have a flappy bird .apk if anyone wants it. Genuine, stock, untouched, works great. =)
[Nexus 5 Q&A, Help & Troubleshooting] supurman182:
ps3

Yeah but do you know how to tether the ps3???????
[Nexus 5 Q&A, Help & Troubleshooting] eeriikk:
Install Orbot on your phone, connect with it and make sure you enable the setting to route your tethered devices through the proxy...that worked for me when I had T-Mobile, as did PDA Net...just checked the Hide tether usage (level 1 I think).
[Nexus 5 Q&A, Help & Troubleshooting] topcat0:
OK, tried and failed on this. Are you sure there isn't some other setting that you have that's allowing this? I set my chrome user agent to "GOOGLE BOT" and connected to my phone. The connection between PC and phone was good and Windows 7 reported a connection to the phone and to the Internet. I still got the t-mobile message. IE had the same result. Got any other ideas on this?
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
That's because he/she is completely wrong. You always have to wonder about overconfident people with a super simple solution that for some reason no one's figured out in a months old thread spanning many pages. Have you tried what's indicated on yakman66's post yet? There are also other similar solutions that achieve the same thing this thread.
[Nexus 5 Q&A, Help & Troubleshooting] calc:
On the nexus 4, and most other androids this would of worked just fine. Not sure what tricks google and tmobile concocted together but it sure was a pickle to figure out when i first got this phone.

Look at post #70, modifying the sql database solved it right away. You will still need to modify the user agent of course.
[Nexus 5 Q&A, Help & Troubleshooting] BeroberoBaa:
FWIW, I didn't have do modify my user-agent with either my N4 or the N5 that I picked up a couple of weeks ago until yesterday when my connection all of a sudden started getting redirected to the T-Mobile upsell page during the middle of browsing on the train.

I'm tentatively wondering if the 100MB hotspot credit that isn't technically available on the $30 prepaid plan is still calculated based on user-agent monitoring even after you've gotten past the APN filter with the SQLite edit. I wouldn't be surprised if this month is the first I've actually gone over 100MB when tethering.

I can of course also get around the user-agent BS by tunneling through a VPN, and the user-agent filter, as expected, also doesn't affect anything that doesn't use HTTP; my SSH session continued yesterday without issue after I started getting the redirect.
[Nexus 5 Q&A, Help & Troubleshooting] droidgirly:
Okay, Simpliest Method current as of 3/11/2014

Okay, so I've finally figured the simpliest way to do this T-Mobile Nexus 5 teathering

If a mobile device is connecting

------------------------------------------

Use the stock built in tether option. T-Mobile monitors traffic by user agent and mobile devices such as the nexus 7 tablet are some how immune to the block.

If a computer is tethering

---------------------------------

Install PDA Net and connect via the USB option, and then select the hide tether usage option under the icon that pops up near your clock on windows.

If a game system such as Playstation or X-Box is tethering

-----------------------------------------------------------------------------

Install PDA net as above, make sure you have a wireless card installed on a windows PC, and make sure it's not connected to any other networks, then simply select Wi-Fi share, and then connect your wii, or xbox, or playstation, or what ever actually, works just like a hotspot, and since PDA, is already hiding tethering traffic there you go.

These processes will work on a 100% stock Nexus 5 T-Mobile phone with no rooting, no mods, and no bull****, works the first time every time. I would however suggest paying the $8 for PDA +, well worth it, one time fee, and there you go. That should help everyone out.
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
You're gonna have to be more specific, I just tethered to my ps3 just to test and it's just fine with stock tethering. No extra apps needed.
[Nexus 5 Q&A, Help & Troubleshooting] PhilipTD:
Thanks, and welcome to the forum.
[Nexus 5 Q&A, Help & Troubleshooting] fulaman:
My phone must be an exception because I can't even have any device connect to my wireless hotspot. This is my 2nd device giving me the same problem. I am on MetroPCS which operates on T-mobiles network. I don't know if the issue is with the SIM card (wouldn't make sense right)? but a webpage doesn't even show up nor am I taken to a t-mobile webpage.

On Windows, when I look at my IP settings, it says limited connectivity and no Internet access. I just don't get how you guys are successful and I'm not....
[Nexus 5 Q&A, Help & Troubleshooting] akmsr:
i would guess that it is a windows problem, you are not really connecting to the hotspot. try diagnose and repair in network and sharing section. is it windows 8 ?
[Nexus 5 Q&A, Help & Troubleshooting] fulaman:
Yah I have tried this, this problem does not seem to be only situated to Windows OS (I'm on Windows 8.1). I have tried tethering to other Android devices, does not work, I tried tethering to an iPad and that does not work as well.
[Nexus 5 Q&A, Help & Troubleshooting] akmsr:
start from the beginning:

delete hotspot SSID from windows network list.

on the phone set up the hotspot security again. ie. change the password.

try connecting again on the computer with the new password.

if it is successful try with other devices.
[Nexus 5 Q&A, Help & Troubleshooting] fulaman:
Couldn't get it to work, for some odd reason, windows can't find a default gateway. If this is the case, I'm wondering if I can statically add the default gateway. It would be the IP address of the phone I assume right? I notice though that T-mobile uses IPv6 addresses. What settings do you use on your phone (APN settings). Can you take some screenshots please? Thanks!
[Nexus 5 Q&A, Help & Troubleshooting] akmsr:
i don't know it thats going to work. even though t-mobile uses IPv6 addresses, all users in this thread uses IPv4 or IPv4/IPv6 setting. give it a try in your metropcs apn.
[Nexus 5 Q&A, Help & Troubleshooting] fulaman:
Siggggh....That didn't work either, just my luck I guess. I appreciate the help though. It's just so odd how I can't get Internet connectivity.
[Nexus 5 Q&A, Help & Troubleshooting] akmsr:
Wow! Something amazing happened at midnight. I just lost my tether capabilities. Just like that. I remember T-Mobile up sell page used to have "pcweb" in the address line, now it's "web2go". Bam! Dropped the tether.:crying:
[Nexus 5 Q&A, Help & Troubleshooting] fulaman:
Gbam indeed, sorry to hear that. I hope that a miracle happens and it is able to work for you again. I really appreciate your help once again. Too bad we could not find a resolution but your efforts are appreciated. Thank you again
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
Sorry if you have already said, but have you applied the settings.db fix yet?
[Nexus 5 Q&A, Help & Troubleshooting] fulaman:
I have not yet applied the settings.db fix. How would I go about doing that?
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
Search this thread for yakman66's post. There are other ways, one at least which doesn't require root, via adb but I only tried yakman's method, it just worked. Without this settings.db fix you can't tether more than your allowance on T-mo, probably also on Metro PCS. IIRC are a couple of people who said they didn't need the settings.db fix but those are a very small minority.
[Nexus 5 Q&A, Help & Troubleshooting] MJHawaii:
I've tried settings.db fix and APN changes as well and none of them worked. Additionally I have tried WiFi tether router as well as other hotspot apps as again just to see and still nothing works. I have to give it to Tmobile they got there block to stick this time at least for the N5. I cannot speak for anyone else but I know what I am doing when it comes to mods and fixes and this is one nut that so far it seems cannot be cracked.

If anyone else has any input.
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
What APN changes? I haven't had to do any, and I don't think anyone else either from t-mobile. What are you tethering to?
[Nexus 5 Q&A, Help & Troubleshooting] MJHawaii:
I've left the (APN) default, changed protocols, used the phones default tether, tether apps, every possible combination and suggestion listed here and elsewhere and this happens when I exceed my 2.5 GB of Tmobile tether.
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
Ah, have you tried to change the user agent in the browser on your computer? Most people need to do that. Used to be (before N5 and kitkat) that T-mo only monitored user agent. The settings.db fix is in addition to that.
[Nexus 5 Q&A, Help & Troubleshooting] GBP85:
It's also recommended that you switch to IP4.
[Nexus 5 Q&A, Help & Troubleshooting] MJHawaii:
If you even read my thread I did that already
[Nexus 5 Q&A, Help & Troubleshooting] wideasleep1:
1) This isn't your 'thread'..you must've meant 'post'. It wasn't clear you had tried *soley* IPV4 (both protocol and roaming), which is what most folks have success using. Don't be snippy with folks trying to help you.

2) Most reports of success revolve around A) setting.db change, B) APN protocol to IPV4 on both settings, C) User-agent switching to compliant browser (I use Safari user-agent on my Chromebook). Failing on all of these and their permutations, I'm afraid you may be SOL beyond your plan-included allotment.
[Nexus 5 Q&A, Help & Troubleshooting] MJHawaii:
I meant post **of course you know that** Mr. Snippy. I am not expecting any help from you or anyone else I am simply sharing information on my experience with what was suggested in MOST cases. That being said I think I was pretty clear in my original POST
[Nexus 5 Q&A, Help & Troubleshooting] akmsr:
well it seems your karma serves you right. all other hundreds of nice people have no serious problems.
[Nexus 5 Q&A, Help & Troubleshooting] calc:
You must have other variables in the mix you failed to mention. Or you've simply done it wrong....

In addition to the user agent spoofing, all I had to do was modify the sql database as it has been mentioned many times in this thread. If you have modified it incorrectly, which I highly suspect is your problem, then that is your source of the issues. I suggest you double check your sql entry.

I have the old unlimited data plan with NO tethering.. works just fine.
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
He said he can tether up to his 2.5GB limit, which should indicate it's not the settings.db fix, but the user agent, which he still hasn't said he's done.
[Nexus 5 Q&A, Help & Troubleshooting] calc:
That has nothing to do with it, he still needs to edit the sql setting for any "tethered data" PAST 2.5 GB in conjunction to the agent spoof. The fact that the plan allows tethering simply means he can tether "legitimately" up to 2.5GB. We know this because he's only getting issues PAST his 2.5 GB quota. According to yakman66, who originally discovered this, the sql entry is redirecting traffic to check if the account has tethering, which he does... once he goes past 2.5GB that sql entry will kick in and block tethered data.

The whole point of the sql fix and user agent spoofing is to trick tmobile into thinking we're NOT tethering, therefore allowing data to pass through. Changing the user agent at this point will fail because the sql entry has already determined that he has used his 2.5GB quota.

Bottom line... both tricks need to be in place if you are to tether past your plan quota.
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
I'm saying that he's saying he's already done that.

The one thing he hasn't said he's done is the user agent. You might be right, but taking him at his word from what he's said it's probably the user agent.
[Nexus 5 Q&A, Help & Troubleshooting] 2wyce:
I was having the same issue all of a sudden.

I've had all kinds of carriers, including T-Mobile, and have never had a problem since Nexus S 4G. NEVER a problem with NS4G, GNex, N4, nor N5 on any carrier. Until recently. A little over a month ago was the first time I've used MetroPCS. Wifi tethering worked like normal for that first month.

Now, in my second month of service, I began to have problems a few days after paying for the service and had only used about 200MB worth of tethering. My tablet (N7 old version) would connect to the wifi, but when trying to go to any web page, it just sat there spinning. Not even the upsell page. Nothing.

The only thing I changed is in the APN settings based on a suggestion I found somewhere on the web. I added ",dun" with no quotes to the end of my APN Type line and it started to work perfectly again.

Now, it's only been 2 minutes since I've done this (lol) so I don't know how long it will last, but I'm glad, at least for the time being, that it's working again.
[Nexus 5 Q&A, Help & Troubleshooting] calciphus:
Just tested this on a Sprint N5 and it works as well.
[Nexus 5 Q&A, Help & Troubleshooting] tarroyo:
Anyone know of any apps or methods that change the user agent when tethering from your device? Trying to tether to a PlayStation 4 and nothings working.
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
The user agent block only blocks some known desktop browsers, that fix is not for ps3/ps4 AFAIK. I can tether ok to my ps3 FWIW, on the $30 t-mobile plan.
[Nexus 5 Q&A, Help & Troubleshooting] tarroyo:
Hmmmm using stock?
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
Yes stock rooted and the settings.db fix.
[Nexus 5 Q&A, Help & Troubleshooting] tarroyo:
I used the method in the OP, just curious how u did your settings fix.
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
First of all, does it work on a computer or a mobile device, just not on your PS4, or does it not work at all?

I don't think there's any method in the OP, but yakman66 figured out what to do to make tethering work at all http://xdaforums.com/showthread.php?p=47203432&highlight=settings+db#post47203432 I think there are other ways to do it, maybe without root, but I didn't follow those.
[Nexus 5 Q&A, Help & Troubleshooting] mattyboyo:
How is bypassing a tethering block because you don't pay for it less theft than pirating apps?
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
I could answer that, but it seems you already have the answer that makes you feel morally superior.
[Nexus 5 Q&A, Help & Troubleshooting] mattyboyo:
It's a genuine question. I've seen plenty of threads closed for going into piracy. I've tethered when I didn't have it in my contract but it never got blocked.
[Nexus 5 Q&A, Help & Troubleshooting] wideasleep1:
The way you phrased the question was a 'tell'. Piracy is flat out stealing, theft. Tethering is a PAID service, and we're given an allotment, or bucket, if you will. We have a series of hacks that circumvent the bucket allotment, which is a violation of TOS contract, but not service theft, since we indeed pay for service.
[Nexus 5 Q&A, Help & Troubleshooting] tarroyo:
Works on computer and mobile just not thru a PlayStation 4.
[Nexus 5 Q&A, Help & Troubleshooting] morbidj:
Tether your phone through USB and setup internet connection sharing to your ps4 through Ethernet
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
What plan do you have, does it have tethering included? Might be that T-mobile is still controlling what you can tether to. I'd try the settings.db fix.
[Nexus 5 Q&A, Help & Troubleshooting] wideasleep1:
This should work.
[Nexus 5 Q&A, Help & Troubleshooting] droidgirly:
UPDATE: T-Mobile tether TURLY AND FINALLY FIXED.

UPDATE: So, my brother bought an identical Nexus 5 phone, and I used the same process with rooting the phone, modifying the settings database entry for the teather_dun switch, and we both had PDA Net installed with foxify, and for some reason, it worked flawlessly on his phone, blown way past the included 2.5GB data plan, works perfectly. So after some tinkering, I discovered I installed a SLIGHTLY different version of PDA Net. so I uninstalled it, went to google play found the PDANet from Google Play, installed it, and now it's working flawlessly, with every wireless device I have, Nintendo Wii, and U, PS3, and PS4, even the dreamcast I have with a USB wireless connects to it with zero redirects. I'm working on building a tutorial with screen shots into a PDF for ease, but for now, here are the steps.

WARNING: THIS WILL CAUSE YOU TO LOSE ANY AND ALL DATA IF YOU HAVE NEVER ROOTED YOUR PHONE BEFORE, BE MINDFUL.

1. Start from a fresh stock Nexus 5, and reset it, login with your google account, and then download, pay for and install the flowing app:

play.google.com/store/apps/details?id=de.msg.nexus5app

Follow the instructions for Rooting your phone, once you have, move on to step 2.

2. download and install the following App for modifying the database to include the tether entry.

play.google.com/store/apps/details?id=com.speedsoftware.sqleditor

3. Using the SQL editor, open it, click on the "Apps" tab, scroll down and find "Settings Storage" it has a little grey scrocket/gear for it's icon, click that.

4. On the next screen touch Settings DB, then the next screen click the + and in the screen that pops up, for the name field enter "teather_dun_required" and the value set to 0, save your changes then restart your phone.

5. After your phone restarts, download a fresh new install ONLY from the Google Play store of PDAnet, pay for the full version, I've been using PDANet across MANY different phones, platforms and such and I've only ever had to pay once for the full version, fully worth the $15. Version should be 4.15.4, enter what ever SSID or wifi network name you like, just no spaces, and only letters and numbers, case is unimportant generally, enter a passphrase, (password is case sensative), letters or numbers.

6. Restart your phone, fireup PDANet, enable the wireless hotspot, and away you go.

If you follow these steps and got it to work where you had failed before, let me know. If you still couldn't get it to work, let me know that as well. Please remember, for the BEST chance of success, do a full factory STOCK reset of your phone with the orginal T-Mobile/Nexus 5 android image, a.k.a KitKat 4.4, then install the nexus app,
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
Most of us have only done the settings.db fix and to tether to a PC browser, the user agent fix. I don't think it's a good idea that you keep recommending people do unnecessary stuff and pay for apps they don't need. You can even edit the settings.db file on a PC for free. Worse, recommending a factory reset should not be but the very last option. Those for whom tethering is not working still haven't gone through basic troubleshooting. As we can tell by the latest posts asking for help, the settings.db fix is not obvious cause it's not mentioned in the OP, so they hadn't done it.
[Nexus 5 Q&A, Help & Troubleshooting] droidgirly:
I'm only saying the apps I used to do it, if you can get the phone rooted, and the db fix done otherways, more power to you, post the tutorial and we'll build a good solid totally free option, I'd be totally down with that. I took the quick easy root and shelled out $20, but that's just me.

Fact of the matter remains, the correct process is,

1. root phone

2. edit settings.db

3. reboot phone

4. install tether program/wi fi sharing /foxfi, or what ever tether program you prefer.
[Nexus 5 Q&A, Help & Troubleshooting] andy o:
There are already instructions in the thread, but they're buried. Just searching for settings.db should yield a solution though. The hardest part is to know how to edit the file and there are already several alternatives, but what yakman66 came up with first worked for me and many others.
[Nexus 5 Q&A, Help & Troubleshooting] TheDannemand:
[MENTION=5756277]droidgirly[/MENTION]: I agree with andy o.

As much as I applaud efforts to share experience on these forums, I am getting a little tired of your continued proclamations of newly found discoveries, that are unnecessary -- and some outright wrong -- and which give new readers of the thread a wrong impression.

Seriously, I'd recommend new readers to just scan through this thread from the beginning. After a few pages you'll understand what's going on and how to enable tethering -- both rooted (yakman on page 7) and unrooted (rcauvin on page 12, sums it all up). You'll spend less time just doing a little bit of reading instead of trying to reinvent the wheel.

Personally I used the ADB command at the end of rcauvin's document (which has been shared many times here) and changed my APN to IPv6/IPv4. Everything has worked since (it didn't work before): It works with or without user agent change, in Chrome, IE, Safari and in various other programs (TCP). I'm on the $30 prepaid 100 min 5GB plan.

Edit: I should add this: The last thing I want is to discourage you from sharing. That's the part you're doing right! Just study a little more what others have posted first, maybe ask a few questions. I guarantee you the information you share will be received better.
[Nexus 5 Q&A, Help & Troubleshooting] Dougshell:
Why doesn't the OP get updated with the important information?
[Nexus 5 Q&A, Help & Troubleshooting] nbowser22:
Any info on actually how to insert the new entry into the table will be very helpful. No matter which editor I use, I can not figure out how to add a new line.
[Nexus 5 Q&A, Help & Troubleshooting] TheDannemand:
If you have ADB working, you can use the command at the end of rcauvin's document in post #119 of this thread. No apps, or even root, required.
[Nexus 5 Q&A, Help & Troubleshooting] kcsims:
Couple of questions if someone could help;

I did everything no problems.

Do you have to install a tether program or can you use the tether built into the settings?

I plan on tethering my nexus 7 only to this, are there any user agent or other settings I should change on the 7?

Last, is there any difference at all doing tethering this way versus a ROM like CM or Slimrom?

Thanks.
[Nexus 5 Q&A, Help & Troubleshooting] akmsr:
answers are in bold after your questions.
[Nexus 5 Q&A, Help & Troubleshooting] kcsims:
Thanks for your help. Everything works great, I was just Wanting to double check everything.

I saw that the nexus 7 chrome browser does report that it is a nexus 7, so I changed it to match the nexus 5 just in case. I really don't want to give at&t a reason to take my unlimited plan away.

On that note, does anyone have experience with tethering like this on at&t unlimited or otherwise?

Thanks again!