[Q] Reverse USB Tethering on HD2 - HD2 Android SD Development

Guys,
I have HD2. Installed Win 6.5 Energy ROM. Yesterday I installed Android on SD Card method. I insytalled Nexus HD ROM.
Android Version : 2.3.4
Baseband : 15.42.50.11U_2.15.50.14
Builder Number: GRJ22 (NexusHD2-Gingerbread V2.7 SD)
All I want is "Reverse USB Tethering" i.e. Share my Laptop's internet connection on my phone via a USB Connection ( not via WiFi .. tha i can do my making my Laptop a Hotspot)
I have tried the following link:
http://forum.xda-developers.com/showthread.php?t=941227
but it is not working somehow, is there something i'm missing ?
Has anyone tried doing this or some different method to make it work.
Please let me know. any help in this regard would be highly appreciated.
Regards

Hello, I'm using RAFDROID HD 4.2 on SD with my HD2 and I just have to connect my phone to my computer via USB and choose Internet relay ("Relais internet" in French, I don't know what are the exact words in english) in the pop-up menu.
It's working great...

thivi said:
Hello, I'm using RAFDROID HD 4.2 on SD with my HD2 and I just have to connect my phone to my computer via USB and choose Internet relay ("Relais internet" in French, I don't know what are the exact words in english) in the pop-up menu.
It's working great...
Click to expand...
Click to collapse
Its Internet Pass Through on English.
Sent from my HTC Incredible S using XDA Premium App

Dude, this is not the Q&A forum, you should not be posting topic in here unless your re a dev and posting your work.

mohitsheoran said:
Guys,
I have HD2. Installed Win 6.5 Energy ROM. Yesterday I installed Android on SD Card method. I insytalled Nexus HD ROM.
Android Version : 2.3.4
Baseband : 15.42.50.11U_2.15.50.14
Builder Number: GRJ22 (NexusHD2-Gingerbread V2.7 SD)
All I want is "Reverse USB Tethering" i.e. Share my Laptop's internet connection on my phone via a USB Connection ( not via WiFi .. tha i can do my making my Laptop a Hotspot)
I have tried the following link:
http://forum.xda-developers.com/showthread.php?t=941227
but it is not working somehow, is there something i'm missing ?
Has anyone tried doing this or some different method to make it work.
Please let me know. any help in this regard would be highly appreciated.
Regards
Click to expand...
Click to collapse
http://www.connectify.me/
you search this
it has usb support too
or try this :
Rugga said...
I'm using Windows 7. I shared my ethernet internet connection to the USB tether device.
In console emulator on the phone I typed:
ifconfig usb1 192.168.2.2 netmask 255.255.255.0 up
route add default gw 192.168.2.1 dev usb1
I can ping the gateway, I can also ping the web by IP address, eg 64.233.181.104 for google.com
What I can't do is use the browser or ping by domain name. I tried:
setprop net.usb1.dns1 192.168.2.1; and
setprop net.dns1 192.168.2.1
But with no luck, any ideas?
July 28, 2010 2:00 AM
Rugga said...
OK it is working now. After setting up ICS type in console emulator on your phone:
ifconfig usb1 192.168.2.2 netmask 255.255.255.0 up
route add default gw 192.168.2.1 dev usb1
iptables -F
iptables -F -t nat
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""
Hope it works for everyone else. GL HF.
July 28, 2010 2:09 AM

Related

Use PC internet connection on phone through USB!

USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Tried it and it's not working for me...
Or maybe i didn't setup squid right.
I'm not so good on ubuntu OS
I tried making a bridge connection on windows...the networks
The network seems to be connected but no internet connection...
Is it necessary to have Ubuntu OS?
Maybe some another how-to will help:
http://forum.xda-developers.com/showthread.php?t=793102
To setup squid to work:
type in:
sudo gedit /etc/squid/squid.conf
In that file find the section called
# ACCESS CONTROLS
Under the section find the line
#Recommended minimum configuration:
and add this line next to it
acl all src all
then find the section
# TAG: http_access
Under this section find the line
#Default:
and add the following line to look like
#Default:
http_access allow all
Close the file and restart squid as:
sudo start squid
That should setup squid to share your internet on all clients.
If required, reboot.
You can try out a similar approach on any other distro other than ubuntu.
i tried several searches about this topic, but none of them succeeded,
any update on this?
can i install ubuntu in my Win7?
syruz said:
can i install ubuntu in my Win7?
Click to expand...
Click to collapse
Well, you can virtualize it in Virtual box. It's free for personal use.
by the way what is the squid your talking about?
@ TS
maybe you can provide us with the link for ubuntu and squid?
Come on.. if you don't already know what ubuntu and squid are there's no point in trying this.
Ubuntu = Linux, that's another operating system. Squid is a proxy.
You ashould at least have the decency of Googling those for yourself..
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Hi guys,
Do you know why I wouldn't be able to see "USB tethering" option? No matter what I did so far, all I can see is the "Portable Wi-Fi hotspot" option and that works fine. But I need to use the USB Tethering!!!
Thanks for the help!
If someone is having the same problem as me (ie usb tethering mode not visible) just use a program called togglesettings lite. It can turn on the usb tethering for you. Now the reverse usb tethering works for me like a charm. Peace!
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Thank you for sharing this trick. But i dont have netcfg utility, since i use ubuntu maverick 10.10, it is not in source list. is ther any other way to do "netcfg usb0 dhcp"?
This is by far the easiest solution I've found to reverse tether. Thanks!
jadeiceman said:
This is by far the easiest solution I've found to reverse tether. Thanks!
Click to expand...
Click to collapse
Sorry and wich is the solution ????
syruz said:
@ TS
maybe you can provide us with the link for ubuntu and squid?
Click to expand...
Click to collapse
sudo apt-get install squid
This should install squid.
netcfg is not there on recent ubuntu versions not even software list but you can configure via app indicator at right but still i can't use reverse tethering although i followed you pretty well.
netcfg is a utlility on the phone... u need to run that command at the terminal of the phone not on your computer. (get a terminal emulator from the market)
Wow I'm feeling stupid.Will give it a go now.

8gb tablet ? ? connecting via connectify to laptop

Ok. I've got the 8gb nook tablet rooted and have connectify on my laptop to try to connect through it as my router doesn't reach far enough...anyway...I am able to connect but with no internet access so i'm wondering if anyone can help me figure out why....
I run busybox ifconfig in terminal emu. and get inet addr: 192.168.147.101 Bcast:192.168.147.255 Mask:255.255.255.0 UP Broadcast running multicast mtu:1500 Metric:1 Rxpackets:363 errors:0dropped:0overruns:0frame:0 Tx packets:620errors:0dropped:0overruns:0frame:0....etc....
seems to me that it's connected to the virtual miniport which has internet access and yet I can't access internet on the nook...can anyone help me figure out why...yes..I have searched..all day for 2 days actually before posting
I'm also getting a notice that says wifi issue error 105
i googled it and there was a Looonnnnggg dilog with :
"this steps fixed my problem. Hope it may help u too.
1. Click Start. Type cmd in the Start Search box, and then press ENTER.
2. At the command prompt, type the following command, and then press ENTER:
ipconfig /flushdns (there is a space between ipconfig and / )
It will show the message successfully flushed the DNS resolver cache.
3. At the command prompt, type the following command, and then press ENTER:
ipconfig /registerdns (there is a space between ipconfig and / )
4. At the command prompt, type the following command, and then press ENTER:
ipconfig /all (there is a space between ipconfig and /)
The ipconfig /all command displays Windows TCP/IP settings for all your network adapters.
If your IP address for your Local Area Connection is either 0.0.0.0 or 169.x.x.x (where x is any number), then your computer is not getting an IP address from the router.
If that is the case, try this:
· ipconfig /release in the command prompt and press ENTER
· ipconfig /renew in the command prompt and press ENTER
Test it again by typing ipconfig /all to see what the address is? (If you are on a home router, it should start with either 192.168.1.x or 192.168.0.x or 10.x.x.x)
1 0"
unfortunately that doesn't help with what I'm trying to do. I'm trying to connect my tablet to my computer through a virtual router with a program called connectify..It's connecting just not getting internet access...sigh hopefully someone will get adhoc working on the tablet soon
jriley60 said:
unfortunately that doesn't help with what I'm trying to do. I'm trying to connect my tablet to my computer through a virtual router with a program called connectify..It's connecting just not getting internet access...sigh hopefully someone will get adhoc working on the tablet soon
Click to expand...
Click to collapse
Does connectify broadcast in ad-hoc? If so, there's a mod somewhere around here that allows the nook to see ad-hoc.
Sent from my NookTablet using Tapatalk
Cubanluke88 said:
Does connectify broadcast in ad-hoc? If so, there's a mod somewhere around here that allows the nook to see ad-hoc.
Sent from my NookTablet using Tapatalk
Click to expand...
Click to collapse
please check out this post. . . http://forum.xda-developers.com/showthread.php?t=1370955&highlight=ad-hoc
bah...it's my wifi drivers..they're not supported with connectify grr...
What OS is on the laptop?
jriley60 said:
Ok. I've got the 8gb nook tablet rooted and have connectify on my laptop to try to connect through it as my router doesn't reach far enough...anyway...I am able to connect but with no internet access so i'm wondering if anyone can help me figure out why....
I run busybox ifconfig in terminal emu. and get inet addr: 192.168.147.101 Bcast:192.168.147.255 Mask:255.255.255.0 UP Broadcast running multicast mtu:1500 Metric:1 Rxpackets:363 errors:0dropped:0overruns:0frame:0 Tx packets:620errors:0dropped:0overruns:0frame:0....etc....
seems to me that it's connected to the virtual miniport which has internet access and yet I can't access internet on the nook...can anyone help me figure out why...yes..I have searched..all day for 2 days actually before posting
I'm also getting a notice that says wifi issue error 105
Click to expand...
Click to collapse
connectify works fine with mine. it just takes a few tries to get it to connect. if u can't see the wifi network or it just doesn't want to connect no matter how many times you try it, try rebooting the tablet and it should work. as long as your connectify is running then there is no reason why the tablet can't connect...
btw what security are you using for connectify? WEP WPA WPA2?

[Q] Why Android Play cannot detect my wlan0 connected?

Hello.
I have an Aurora 2 tablet, with ICS.. my wifi isn't working at all, so I decided to compile drivers for a wifi dongle (AWUS036H) and I did it.. THEN using chroot ubuntu or terminal emulator (both work ok)
I
PHP:
insmod eeprom_93cx6.ko
and then
PHP:
insmod rtl8187.ko
and no problem at all. then I config the wifi using
PHP:
ip link set wlan0 down
iwconfig wlan0 essid MYESSID key mykeynumbers
sleep 10
ip link set wlan0 up
dhclient wlan0
then I try android's web browser and I'm able to surf the net at great speed and even to watch videos... unfortunately I'm not able to download anything from browser. Then I try to open market and not possible.. Android wants me to turn on my onboard card... so my questions are:
1.- how can I make android "PLAY" detect my wifi antenna?
2.- Is there a way to use the GUI button to enable my rtl8187 instead of the onboard one?
anny suggestion??? pleaaaaaaaaaaaaaase!!
thanks in advanced...
FUNNY THING I discovered.. I'm able to download using Opera or chroot ubuntu (wget) so this is really nuts :... :S

OTG LAN cable not working for android but works on windows

Hi,
I have a X98 air 3g (c5j6) dual boot tablet and i bought an OTG cable with a LAN port.
When running windows the ETH port is recognized and working but on Android it is not.
I tried it on both stock rom(4.4.4) and mirek190 5.0 V7.
Connecting the OTG cable, i can see eth0 interface added as down.
After running netcfg eth0 dhcp, the interface is up and has ip address.
However, no Internet access.
I tried to configure the dns using: setprop net.eth0.dns1 8.8.8.8
That didn't work.
What else can i do?
Also how can i get this configuration to run automatically when connecting the OTG cable?
Anyone?

m8s (suspected clone) IP/MAC address change for eth0 on reboot bug.(other issues too)

Good morning everyone. As per the thread title, My girlfreind has a TV box that I suspect is a clone (the update ROMs from chinagadget review wont flash from TWRP).
This device is connected to her ADSL router/modem via a LAN cable and everytime the device boots, the MAC address for the LAN interface is randomised, causing the router to issue a new IP address via DHCP. (I cannot get the device to communicate with static IP)
it's running a lollipop based ROM at the moment (LMY47V.20160505 TEST-KEYS) is reported in settings.
I haven't removed the case yet, to investigate the circuitboard/RAM manufacturer (and don;t know how to check via software, if the wifi/bt module is made by broadcom/atheros) but my gut feeling is screaming "it's a clone". (If it helps, the TWRP backup I performed has saved to a sub-folder called "k200")
She purchased the device from Amazon UK and the majority of apps on Play Store give "version isn;t compatible with this device" error. I've tried to spoof other device in build.prop and with an app called "market helper" but no joy yet.
Any help appreciated
Has anyone got any advoce for me?
CAn anyone point me to messages/threads on hoiw to spoof a MAC address on ethernet adaptor?
does anyone know how to spoof my device type so I can get Play Store to allow me to download/install apk's without needing to sicdeload
wodgey said:
Has anyone got any advoce for me?
CAn anyone point me to messages/threads on hoiw to spoof a MAC address on ethernet adaptor?
does anyone know how to spoof my device type so I can get Play Store to allow me to download/install apk's without needing to sicdeload
Click to expand...
Click to collapse
I also have this issue with my Kata Box 2 (Amlogic S905)
I was also very frustrated when I learned that the mac address was always set at random every time I reboot.
I've read that you need to use USB burning tool to hard code the mac address for your android box.
Here's what I did to solve this.
you need:
a rooted android box
busy box
Terminal emulator
1st method:
Make sure that the ethernet cable is unplugged.
Run terminal emulator.
Run these commands in lower case:
su
ip link set eth0 down
ip link set eth0 address 01:23:45:67:89:10 (change the values of your desired mac address)
ip link set eth0 up
2nd method:
su
busybox ifconfig eth0 down
busybox ifconfig eth0 hw ether 01:23:45:67:89:10 (change the values of your desired mac address)
busybox ifconfig eth0 up
You can run run these on startup using Script Manager.
I tried both method 1 and 2 and works very well.
To verify the if everything was set properly you can run these commands:
ip link show
And
busybox ifconfig
so far on my end its working great. Im now able to reserve the IP address via MAC address.
aperture;68526292Here's what I did to solve this..[/QUOTE said:
Thanks dude. I'll try this and report back.
Click to expand...
Click to collapse
aperture said:
I tried both method 1 and 2 and works very well.
Click to expand...
Click to collapse
For me, method 2 works. 1st method didn't change anything that I could see.
I have also added start/stop adbd and setprop tcp port to my script also so I can have adb over tcp upon boot, shich I was struggling to set as persistent.
Thanks again.
wodgey said:
For me, method 2 works. 1st method didn't change anything that I could see.
I have also added start/stop adbd and setprop tcp port to my script also so I can have adb over tcp upon boot, shich I was struggling to set as persistent.
Thanks again.
Click to expand...
Click to collapse
I'm glad it worked out well for you. :victory:

Categories

Resources