Device Info: Motorola Moto X Play, stock Marshmallow ROM (rooted)
Hiya!
I've been fiddling with this problem for a few days and even after lots of googling I have not found a solution.
I have a Plugable USB OTG Ethernet adapter based on the ASIX AX88772A chipset which works fine when connected to a router, as in I can use it as a main data connection.
When I connect it directly to the ethernet port on my laptop is when things start to break down.
Since there is no default network control for ethernet I drop down to a terminal on the phone and manually bring up eth0 and on my laptop set it's address appropriately.
Ping works fine from Android->Laptop provided I specify the interface to use ("ping -I eth0"), however the laptop cannot ping the Android at all and will just time out.
I've tried multiple IP configurations and even completely cleared out iptables just in case but my laptop is still just not receiving ICMP echo replies from the Android.
Does anyone have any ideas as to why it's doing this?
My end goal is to have my laptop tethered via ethernet to my phone and because it's an old laptop (iBook G3) this is one of the few options that doesn't require a tonne of extra pieces.
Thank you
Related
So I just got my touchpad today, and was made aware that it doesn't support ad-hoc networks, which I use somewhat frequently to share a wired connection via my laptop. I just bypassed it by using my phone as a hotspot (android creates infrastructure), but after a little searching I found a nice little video on youtube about how to create an infrastructure network from Windows 7.
http://www.youtube.com/watch?v=klHzMyYFGeQ
Lets all give this guy some thanks.
For those of you that can't/won't go to youtube, the general gist of it is that you need an unused wifi network adapter and an internet connection. You then set up the network by running as administrator:
Code:
netsh wlan set hostednetwork mode=allow ssid=testwifi key="123456789012"
Then you share the internet connection with the (maybe new) Microsoft virtual WiFi Miniport Adapter. Now you're ready to start it with:
Code:
netsh wlan start hostednetwork
And you can check its status via:
Code:
netsh wlan show hostednetwork
cannot create Microsoft virtual WiFi Miniport Adapter
dorsai3d, thanks for the information. I had been trying to use my Sprint TP2 as a wifi router, and was getting really frustrated. If this would have worked, it would have been awesome.
So what I am trying to do is use USB to theter to my Windows 7 64bit laptop, and use the Wireless adapter on the laptop in infructure mode to theter to Touchpad.
When I run the
"netsh wlan set hostednetwork mode=allow ssid=testwifi key="123456789012" command, it runs fine (as admin).
"The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed. "
++
This is the error I get when I run "netsh wlan start hostednetwork"
"The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation."
++
output for
"netsh wlan show hostednetwork"
Hosted network settings
-----------------------
Mode : Allowed
SSID name : "testwifi"
Max number of clients : 100
Authentication : WPA2-Personal
Cipher : CCMP
Hosted network status
---------------------
Status : Not available
+++
No virtual adapters were created, like in the video, nor was there one to begin with.
So I am guessing that is the crux of my problem
I use Ad-hoc mode quite often, I have Intel 4965AGN for my wifi adapter on this laptop.
and I use my 3G on the Touch Pro 2 at my primary internet at home
Anybody running into similar issue, or might know whats going on. Will appreciate any help, thanks.
loving my touchpad btw
As this is a relatively new feature, you may need to reinstall/update the drivers for your current wifi adapter. I'm not a big networking person, so I'm afraid I won't be too terribly much help, but maybe we can get this all headed in the right direction. I'm afraid it looks like there won't be a solution for getting windows mobile to create an infrastructure hotspot if it's one of the new selling points in Windows 7.
For reference, I'm using the Intel WiFi link 1000 BGN and the virtualized adapter was already there for me.
Yup, driver issue. Looks like I might have to buy a second wireless nic that supports this feature. Just knowing that this is possible it a great start
now to find a cheap usb wifi nic that dose support this. I have a Intel 5300AGN on my work laptop, I think that is supported.
thanks for your help though.
edit:
lookes like even Intel 5300AGN dose not support VWIFI
I made the infrastracture Wi-Fi with windows 7 and it works perfectly with my Android S3 phone and tablet but when I try to connect my Iphone with it....My lan connection frezees and I am unable to access internet at all .....
Then I have to disconnect my Router and restart it...
I surfed and I guess I have o connect to the hotspot through VPN.....But I dont know the details to fill in....
The Iphone 4s ask the following details for VPN connection
L2TP PPTP IPsec
Please help me !!!!!!
I have the job to use a Galaxy Tab 10.1 as a presentation device during an exibition and want to connect it to a controller PC (running Win7) via wire connecton. Previously I used WIFI, which works fine in the lab but fails completely! with 1000 people running around each of which having a device of their own and WIFI enabled.
How can I connect the SGT to the PC to send and receive some small amount of control data (receive touch screen events on the PC and send some control data to the tab)? As far as I know there is no ethernet available via the connector and the USB option would only work if I would use logcat and parse the strings, but I have no idea how to send data back to the tab.
Under /dev there are a few serial devices but I could not find a Samsung connector having a serial plug (which would be enough to solve my problem).
I hope some of you might have an idea how I can solve this problem.
-Udo
I kept on searching and found this solution (haven't tried it out yet).
http://www.anothem.net/archives/2010/10/15/android-usb-connection-to-pc/
Seems promising, even though I would like to send UDP pakets rather than using TCP and dealing with the required overhead (OK -- it's not that bad).
Also, in the past ADB seems to be rather unstable at times and my solution has to be as stable as possible because I have to run unobserved for up to 10 hours.
I keep on searching (and will also monitoring this thread, in case someone here might have a different idea).
-Udo
Hi,
I've been trying for some time to share an internet connection between an android phone (tried with several phones) and an android Tablet (Samsung Active Tab 2).
Rooted the tablet (after some very long research) and tried the following methods:
1. Connect two devices with OTG connector, turned on RNDIS and configured both rndis0 interfaces to be on the same network (different IP addresses ofc) - no ping, nor udp messages (using a UDP Sender\Receiver app) go through.
2. Tried creating a VPN server on the host device (the one providing internet) which creates a tun0 interface that listens to the rndis0 interface - Could not connect to server.
3. Used "Easy Tether Lite" on both devices and managed to share internet, but limited to the Lite version which allowed the use of HTTP only - This shows that it can actually be done using only a USB cable and OTG adapter.
Would appreciate some help with this matter.
Thank you all,
EDIT: Was thinking this may be done using a different Ethernet interface instead of RNDIS. Any ideas?
Shedaim said:
Hi,
I've been trying for some time to share an internet connection between an android phone (tried with several phones) and an android Tablet (Samsung Active Tab 2).
Rooted the tablet (after some very long research) and tried the following methods:
1. Connect two devices with OTG connector, turned on RNDIS and configured both rndis0 interfaces to be on the same network (different IP addresses ofc) - no ping, nor udp messages (using a UDP Sender\Receiver app) go through.
2. Tried creating a VPN server on the host device (the one providing internet) which creates a tun0 interface that listens to the rndis0 interface - Could not connect to server.
3. Used "Easy Tether Lite" on both devices and managed to share internet, but limited to the Lite version which allowed the use of HTTP only - This shows that it can actually be done using only a USB cable and OTG adapter.
Would appreciate some help with this matter.
Thank you all,
EDIT: Was thinking this may be done using a different Ethernet interface instead of RNDIS. Any ideas?
Click to expand...
Click to collapse
hello,
I'm facing the same situation. I had the idea that option 1 should be easy but not.
The phone detect the tablet device and let me to activate the function "USB tethering" but nothing change on the tablet, impossible to navigate or ping.
Hi all,
For some time now I've been working on Android-to-Android Tethering, which seems to be pretty difficult without 3rd party apps and/or HW peripherals (such as USB-to-Ethernet converters).
I've been working with a Rooted Samsung Tab Active 2 running Android 7.1.1 and several internet-connected devices: Samsung S8, Samsung S7 and also another Tab Active 2. All devices come with RNDIS support and have "Ethernet configuration" under connection settings.
I managed to get it to work using "EasyTether" with a client app and a server app. BUT, first, I don't like and don't want an app that controls all my networking data. Second, I don't understand how come we haven't yet done it with native Android configurations.
I tried connecting two device via USB cable using a standard USB-C to USB-A to OTG converter to Type-C (or micro-USB-B with the S7).
On the host device (the one with the OTG connector) I enabled USB tethering, but nothing happened. Tried pinging devices, but no dice. still, both devices recognize a connected USB-device and I can see their details using a USB-Diagnostics app.
Tried turning on Rndis as the USB setting - On some cases both Rndis interfaces up and running, with IP addresses, subnets and routes configured, but nothing. Not even a ping between devices. On other cases Rndis would be DOWN, but setting "ifconfig rndis0 up" would do nothing without printing any error.
I believe now that the Rndis drivers present in an Android phone or Tablet contain only the part of the client, while the host part of the driver exists on PCs.
I would appreciate some help with this.
Thanks,
Shedaim
Hi, sorry to reviwe old thread. But did you get anywhere with this? I am looking for a ethernet tether. I got the following adapter https://www.kjell.com/se/produkter/dator/mac-tillbehor/plexgear-multiadapter-for-usb-c-p61629 That worked great meaning it could power the phone at the same time as working as a usb and ethernet adapter. Internet to the phone with cable no problem. The phone (samsung A8) detects the adapter as a eth0. BUT there is no function to "tether with ethernet".... This is super strange that it has not been built in. Have googled it for ages but cant find anything.
Hello,
I am attempting to create an application that displays the IP address that a phone obtains when using a wired OTG Ethernet Adapter.
I have at my disposal a rooted Verizon S7 (SM-G930V ) running Android 8.0 (G930VVRS8CRK2).
The way I initially envisioned accomplishing this was via writing a shell script that brought the OTG adapter up and then grabbed an IP address via DHCP. Then I figured I could write an app to run that script, and grab the IP address and display it.
To start testing and planning this out, I just loaded a terminal emulator app so I could go through the steps manually to see how everything works first. However, I cannot figure out how to get the OTG adapter to grab a DHCP lease, and I think I must be missing something obvious; that doesn't seem like it should be that hard..
From what I have read, all I should have to do is
-ifconfig eth0 up
-dhcpcd eth0
Well, ifconfig works-I can bring the OTG adapter up, and I can give it a static IP and ping my gateway so I know the phone sees the adapter and it is working. However, I can't run dhcpcd-the terminal emulator says that the command isn't found..
So that brings me to my next question-how do I initiate DHCP on the eth0 OTG adapter? Can I do it via the shell/a shell sctipt, or is there some other way to do it via the Android SDK/methods exposed through normal app development procedures? I'm kind of baffled why I can't directly access dhcpcd-there has to be SOME way to get DHCP to works seeing as you can connect via wireless, etc and grab a DHCP address with no issues.
Thanks for the help!