Connecting LG G2 to ethernet cable to use as a network port tester - G2 Q&A, Help & Troubleshooting

Greetings all-
I am an IT professional and was thinking how handy it would be if I could just plug my phone into our wired ethernet network to test if a port, cable, switch, etc is working properly.
Goal: To plug my G2 into an ethernet cable and use one of the IP info apps (or packet sniffer apps) to do some network troubleshooting. Basically, I would want to know if DHCP is working on a port and what IP info the phone is getting.
I know they make ethernet testers that can be plugged into a wire for testing/troubleshooting purposes but these are expensive and can't do what an sniffer app can. Plus I always have my phone and can easily carry a few extra cables with me to make this happen.
Experiment: I bought thingy one and thingy two.
I plugged both of these into my phone and then connected the ethernet cable. I saw the link light come on, so I know there is at least some connectivity. However, I am not able to get any data to pass through to the phone. I set the phone to airplane mode (so it won't use any wireless networks) and try to access the internet and I get nothing. The G2 doesn't know how to use the ethernet connection.
Does anyone know how to make this work????
Thanks for any help you can provide!!

mrhumble1 said:
Does anyone know how to make this work????
Click to expand...
Click to collapse
Nope, but thinking it through should be possible. In short you just have to configure Android/Linux to use the 802.11 adapter on the USB port. Would be interested to know what the log files have when you plugged in to the G2. Suspect
1) You will need to be rooted
2) Would try get the LAN adapter working on a Linux desktop first then go back to the G2. If there are Win, Mac & Linux drivers should be possible why Android is 'limited' to ASIX AX88772 chipset needs to be understood though.
Good luck

You will have to write specific drivers for it. It isn't just convincing the kernel that your microusb port is your 802.11 port, because the technology is different. Ethernet doesn't have to worry about maintaining a connection over the air, but it does have to remember which wire is used for what. So it would need an actual driver written for it.

http://pockethernet.com/

Related

USB GPS, Universal and USB Hub - is the following possible?

Hi,
I have a USB GPS receiver that is powered via the USB cable wired into my car which I occasionally use with my laptop.
I would like to connect this to my universal, but am worried about it draining the battery.
I have a small Belkin USB hub that has external power (which I can provide from a transformer in the Cig lighter socket) that has one mini USB socket which is usually used to connect to the PC and then 4 standard USB ports.
If I connect the GPS to one of the USB ports and then Universal to another they should both be powered, but will the Universal be able to 'see' the GPS?
I know I could go and just try it, however it would be useful to know before hand incase it doesn't work when it is supposed to due to some driver issues or something similar.
Any thoughts appreciated.
To My understanding this is not possible, the mini usb port on the uni is not capable....there is a word to describe it but cant remember at the moment. The port can onl charge and sync.
it won't work
Sadly this won't work as the uni does not support usb host - it can charge and sync but thats all as far as i'm aware.
that was it "usb host" :lol:
THanks. That's a shame, I'll have to get a BT one now.
Or look for a cradle that will act as the host for both devices. Sadly when I searched on google, most of the returned results are blocked by my work firewall, so I can't see for sure that one exists for recievers with usb plugs.
edit* Although thinking about it, the price of a cradle could well equal a new bluetooth receiver, and bluetooth would be vastly more practical use of your cash.
Thanks, already trying to track down a BT receiver.
Why not?
What makes me wonder is that when my MDA Pro is connected via activesync with my PC, I can browse with my MDA over my PC-Internet connection into the Internet. Why should it not be possible to use the usb connection of the MDA with other hardware? :roll: Isn't it just a driver problem?
Any ideas???
hm
My thought on that would be that your MDA is acting as the slave device when attatched to your PC, not the host.
Hey, here's a market opportunity for you USB GPS manufacturers - add USB Host capability and TCP/IP protocol to your USB GPS device... What? Can't hear you. Ah, Too expensive?. Ah, ok :-(

Network adapter Wifi/Bt

Hi all.
I search app which simulates the network adapter on the computer using radio phone module.
There can be who that saw such program.
Its possible?
Sorry for my english.
do you mean turning your phone into a wifi/BT usb adapter? not sure you can do that, you can share your 3G via USB so in theory you could share wifi/BT in the same sort of way.
Yes.
I had a necessity to connect two computers in a local network, without having a cable.
The laptop, it is necessary to make one of them only wifi/bt adapter on other computer.

[Q] Mini USB to RJ45 adapter?

wondering if there is an adapter somewhere to allow me to plug in my Evo4g(or any mini USB phone) to an RJ45 connector...for example a console port on a switch/router and use a terminal app to configure it.
is this even possible?
thanks for any info
Wow...
Wow lol, while that's a pretty cool idea I doubt it could work... I use a USB to Serial adapter on my laptop to connect to switch gear with a Cisco cable, this one specifically,
http://www.amazon.com/Keyspan-USA-1...1?s=electronics&ie=UTF8&qid=1318030317&sr=1-1
but the phone itself would have to have a driver for it, or you'd have to custom code one yourself... Either way I'm not sure a phone would even support serial emulation over its USB connection. Cool thought though!

Using Ethernet and Wifi at the same time in Android

i want to use turn on both Ethernet and Wifi on my android decive at the same time with different IP addresses like:
Wifi: IP: 192.168.1.5 Gateway: 192.168.1.1
and
Ethernet: IP:192.168.0.10 Gateway: (Blank)
Is it possible? the problem is that when i turn Wifi on , the Ethernet will get disconnected.
and only when Wifi goes off or disconnected Ethernet will be connected!
How can i use both of them at the same time connected to the network?
It's possible in PC based systems even with 2-3 adapters! But what about Android devices?
armini said:
i want to use turn on both Ethernet and Wifi on my android decive at the same time with different IP addresses like:
Wifi: IP: 192.168.1.5 Gateway: 192.168.1.1
and
Ethernet: IP:192.168.0.10 Gateway: (Blank)
Is it possible? the problem is that when i turn Wifi on , the Ethernet will get disconnected.
and only when Wifi goes off or disconnected Ethernet will be connected!
How can i use both of them at the same time connected to the network?
It's possible in PC based systems even with 2-3 adapters! But what about Android devices?
Click to expand...
Click to collapse
And WHY WOULD YOU want to do this? and what android device has Ethernet??!!! unless your using one of those Rasberry PI or whatver there called.
hyelton said:
And WHY WOULD YOU want to do this? and what android device has Ethernet??!!! unless your using one of those Rasberry PI or whatver there called.
Click to expand...
Click to collapse
okay , i dont want to do this anymore, the problem solved.
im using USB to Ethernet adapter.
i use wifi of tablet for other purpose , i want to add a device to tablet that works with network
i can simply put an accesspoint and connect the device to tablet but it a bit more expensive that USB-Ethernet adapter
simply for this!
anyways thanks for ur answer
Thanks for your precious input man!. It also works for me with an Android compatible USB / Ethernet Adapter. If I configure both Wifi and Ethernet manually with different subnets, I can make both work simultaneously. I use this adapter: Assmann DN-10050-1 Digitus USB network adapter.
@hyelton: ever heard of Android TV boxes? Imagine to have it connected via Wifi to the web and via Ethernet to your NAS?
Cheers.
intel9014 said:
Thanks for your precious input man!. It also works for me with an Android compatible USB / Ethernet Adapter. If I configure both Wifi and Ethernet manually with different subnets, I can make both work simultaneously. I use this adapter: Assmann DN-10050-1 Digitus USB network adapter.
@hyelton: ever heard of Android TV boxes? Imagine to have it connected via Wifi to the web and via Ethernet to your NAS?
Cheers.
Click to expand...
Click to collapse
Yes I know, but why is the NAS not already connected to the same network that the box is connecting to the WiFi? The ideal way is to have the NAS part of your network not separate.
hyelton said:
Yes I know, but why is the NAS not already connected to the same network that the box is connecting to the WiFi? The ideal way is to have the NAS part of your network not separate.
Click to expand...
Click to collapse
You are right, it is the ideal way to have everything in the same network. But in my experience, streaming HD content via Wifi is too laggy. Therefore I connect my NAS and my Android TV box via an ethernet cable.
intel9014 said:
You are right, it is the ideal way to have everything in the same network. But in my experience, streaming HD content via Wifi is too laggy. Therefore I connect my NAS and my Android TV box via an ethernet cable.
Click to expand...
Click to collapse
But why not connect the Ethernet side TO your router and not use wifi?
Sent from my iPhone using Tapatalk
hyelton said:
But why not connect the Ethernet side TO your router and not use wifi?
Click to expand...
Click to collapse
Because I would have to drill holes in several walls to get the cable trough to all devices. This way I only need to place the NAS in the vicinity of the Android TV Box and connect them via cable.
intel9014 said:
Because I would have to drill holes in several walls to get the cable trough to all devices. This way I only need to place the NAS in the vicinity of the Android TV Box and connect them via cable.
Click to expand...
Click to collapse
Idk it just seems verry wasteful. I have Ethernet scattered throughout my upstarts no holes drilled and none of it visible. Why don't you just use an external USB hard drive instead of wasting a NAS?
Sent from my iPhone using Tapatalk
Dear Friends,
let me explain about the problem.
Result: let me say that the problem solved by interfacing android usb to my device instead of ethernet.
Details: and now about the reason i need to do it: i have a small electronic design office. i need to design a system that controls electrical I/Os (like Relays, Triacs, etc) and need android to control that wirelessly, so 2 problem exists:
1. how to connect android wirelessly to PC / Mobile?
Answer: by network programming and wifi
2. how to connect android device (tablet/phone without direct I/Os) to the Electrical devices with wire?
Answer: there is 2way: 1.with Ethernet , 2. with Usb
Ethernet: via Enc28j60
Usb: with usb controller
and why not to use Router/AccessPoint?
Answer: simply because addition of more device! it increase cost of building and the volume , power consumption, complexity of system etc.
Thanks for ur attention.
(sorry for bad english.)
Sent from my Hol-U19 using Tapatalk
Details
intel9014 said:
Thanks for your precious input man!. It also works for me with an Android compatible USB / Ethernet Adapter. If I configure both Wifi and Ethernet manually with different subnets, I can make both work simultaneously. I use this adapter: Assmann DN-10050-1 Digitus USB network adapter.
@hyelton: ever heard of Android TV boxes? Imagine to have it connected via Wifi to the web and via Ethernet to your NAS?
Cheers.
Click to expand...
Click to collapse
Hello,
I'm onto the samething, already bought the usb to ethernet connector but can't get it to work.
Can you provide me the exact details how you have done this ?
Thanks in advance.
intel9014 said:
Thanks for your precious input man!. It also works for me with an Android compatible USB / Ethernet Adapter. If I configure both Wifi and Ethernet manually with different subnets, I can make both work simultaneously. I use this adapter: Assmann DN-10050-1 Digitus USB network adapter.
@hyelton: ever heard of Android TV boxes? Imagine to have it connected via Wifi to the web and via Ethernet to your NAS?
Cheers.
Click to expand...
Click to collapse
I know this is an old topic...
But just wondering, doesn't Android TV boxes have their own Ethernet port? Or does only the USB Ethernet work simultaneously with builtin in WiFi?
I am keen to make them work simultaneously on HiMedia media player which already has a builtin Ethernet port and WiFi, but only one works at a time.
Thanks
U need rooted tv or android
Maybe this will help
Bridging Connections in Android
I've recently worked to get OpenVPN working on my Android CM7-based phone. This allows me to connect to my personal network from my phone which is great. I'd like to take it a step further by allowing other computers to tether to my phone and...
forum.xda-developers.com

USB-C LAN adapter that work on 9T?

Does anyone have tested usb lan adapters with the 9T?
I used all the time a ASIX lan adapter in my old Moto X2 with Lineage OS, so i was wondering i anyone have a "working" adapter/IC with the 9T so i can get one for me?
thanks!
I tried LAN adapter on my mi 9t and i can confirm that sadly it doesn't work :/. It worked on my older Mi 4c but not on the recent models.
Dawidqo said:
I tried LAN adapter on my mi 9t and i can confirm that sadly it doesn't work :/. It worked on my older Mi 4c but not on the recent models.
Click to expand...
Click to collapse
good news! tried a "ASIX AX88178" usb 2.0 to gigabit adapter and worked fine! don't know if is only this one, but i think newer asix usb 3.0 will work too (usb on this phone is 2.0 only)
can scan LAN and get internet from it. just need to connect on a network with DHCP ( i don't think you can set manual ip on lan on android)
beware of cheap otg adapters, some of them (tiny dongle) does not have all GND and VCC pins, so they don't get a proper "multiple connection" pins to get better amperage from phone. usb lan adapter can use a bit of power from phone
malowz said:
good news! tried a "ASIX AX88178" usb 2.0 to gigabit adapter and worked fine! don't know if is only this one, but i think newer asix usb 3.0 will work too (usb on this phone is 2.0 only)
can scan LAN and get internet from it. just need to connect on a network with DHCP ( i don't think you can set manual ip on lan on android)
beware of cheap otg adapters, some of them (tiny dongle) does not have all GND and VCC pins, so they don't get a proper "multiple connection" pins to get better amperage from phone. usb lan adapter can use a bit of power from phone
Click to expand...
Click to collapse
Hi, can you tell me the steps to follow to make it work? I have a Mi9t Pro and a USB Lan X88179 adapter connected to an OTG to the mobile, but the internet does not work. How did you do it?
Can you explain this part to me?
"can scan LAN and get internet from it. just need to connect on a network with DHCP ( i don't think you can set manual ip on lan on android)"
Thank you.
Hi, i used a otg adapter cable (make sure it works correctly with a thumb drive for example, to make sure every thing is ok and detect the device)
then i just connected the lan adapter. i would appear as if it is not working, but you need to connect to a network router/switch/etc with the cable and the leds should light up on the lan adapter. to "properly" work, you need to connect to a device with DHCP enabled (by default all lan routers have this) so it will give the phone a IP and work normally. (a network icon should appear on the notification bar)
then you can disable wifi and see if there is internet (if have it in the router) or use the network analyzer to scan the network (if it detect the device and work, you will be able to scan the network and find the devices on it)
malowz said:
Hi, i used a otg adapter cable (make sure it works correctly with a thumb drive for example, to make sure every thing is ok and detect the device)
then i just connected the lan adapter. i would appear as if it is not working, but you need to connect to a network router/switch/etc with the cable and the leds should light up on the lan adapter. to "properly" work, you need to connect to a device with DHCP enabled (by default all lan routers have this) so it will give the phone a IP and work normally. (a network icon should appear on the notification bar)
then you can disable wifi and see if there is internet (if have it in the router) or use the network analyzer to scan the network (if it detect the device and work, you will be able to scan the network and find the devices on it)
Click to expand...
Click to collapse
My otg works by putting the usb memory (yes, it detects it, so OTG is right).
When I connect USB lan adapter (AX88179) to the OTG, the operation lights do not light. And the network icon does not appear on the mobile, and I havent internet. (However, with another Huawei mobile and the Huawei tablet the lights do turn on, the network icon appears, and the internet works via ethernet).
My router is connected in DHCP.
What could be the problem? I need to connect the 9t pro by cable but I can't find the way.
I thought it could be a problem with Xiaomi and 9t pro, but if you connect your 9t I suppose it is possible.
Why don't you use some small modem?
yaro666 said:
Why don't you use some small modem?
Click to expand...
Click to collapse
you mean connect the ethernet cable directly to a small modem and this via USB to the mobile? it would be to use the modem instead of the lan adapter, right? it's a good option, I can try it to see if it works for me.
But I still have the doubt as to why in Mi 9t pro the lan adapter does not work
perhaps the AX88179 is not supported... i tested mine ( AX88178 ) with MIUI and LineageOS and works on both,
malowz said:
perhaps the AX88179 is not supported... i tested mine ( AX88178 ) with MIUI and LineageOS and works on both,
Click to expand...
Click to collapse
Hello, I have gone to the Xiaomi store and another to fix mobile phones, in both they have told me that the ethernet option through an adapter to the 9t pro is not possible because my USB is only for transferring photos, videos (pendrive) but it is not compatible with connections. In developer options, the RNDIS option (USB ethernet) does not appear, which would be the one you would have to have to be able to do it. Do you have the RNDIS option in 9T? it would be: developer options -> default USB settings
RNDIS is for using usb <>usb connection to a computer and make a network over usb, NOT a usb lan adapter.
if usb support OTG (send power via usb to connect a device like usb pendrive) it means it "can" support any usb device, but depend only on the device to have drivers and support for the type of device.
Again, i've tested mine in MIUI and Lineage, and works fine. will post a video showing...
malowz said:
RNDIS is for using usb <>usb connection to a computer and make a network over usb, NOT a usb lan adapter.
if usb support OTG (send power via usb to connect a device like usb pendrive) it means it "can" support any usb device, but depend only on the device to have drivers and support for the type of device.
Again, i've tested mine in MIUI and Lineage, and works fine. will post a video showing...
Click to expand...
Click to collapse
Thank you for your answers. In the Mi community forum, users have the same problem as mine, updates from MIUI 10 do not work for the ethernet option (my MIUI is 12.0.3.0. Another girl asked Xiaomi directly and in an email They answered that they had eliminated that option for not going "with their philosophy" (they are also eliminating the headphone jack connection in many mobiles, it can only be used by bluetooh). This is the general trend, I cannot find anyone who has found a solution Only you! Even in this forum there is a thread about rooting the mobile to make it work with ethernet (but it is too complicated for me). Also other people on the forum work the lan adapter by activating RNDIS in the developer options.
So far, none of this has worked for me.
Summary: Since I don't know exactly what the problem or compatibility is, I am going to try the AX88178 lan adapter. So, wish me luck!
Video (sorry for the low quality, i only have a very old extra phone)
malowz said:
Video (sorry for the low quality, i only have a very old extra phone)
Click to expand...
Click to collapse
Hello! I'm writing to you from my Xiaomi 9t pro in airplane mode with an ethernet cable connected. You were finally right, now it works with the AX88178!! Thanks thanks!!!
Great! if anyone knows a 10/100 adapter that works too with 9T, please share.
10/100 are slower, but consume less power. would be nice to have the option
malowz said:
Great! if anyone knows a 10/100 adapter that works too with 9T, please share.
10/100 are slower, but consume less power. would be nice to have the option
Click to expand...
Click to collapse
This is mine https://www.amazon.es/Plugable-USB2...(“chipset”+ASIX+AX88178&qid=1611769255&sr=8-2
evamel5 said:
This is mine https://www.amazon.es/Plugable-USB2-E1000-Adaptador-Ethernet-Negro/dp/B003VSTDFG/ref=mp_s_a_1_2?dchild=1&keywords=(“chipset”+ASIX+AX88178&qid=1611769255&sr=8-2
Click to expand...
Click to collapse
mine is the same, without the case. but this one is gigabit over usb 2.0 (max around 400mbps).
a 10/100 would be enough for me, smaller and with less power consumption. will try to find a compatible chip from asix perhaps in the future
AX88179 = usb 3.0, yours that wasn't working
asix has these usb 2.0 to 10/100 lan IC's:
AX88172A
AX88772A
AX88772B
AX88772C
will try to find any in Brazil.
something like this:
Amazon.com: USB to RJ45 LAN Ethernet Adapter 100Mbps USB to RJ45 LAN Converter 10M 100M with Asix AX88772B AX88772 Chip (Type C to RJ45) : Electronics
Buy USB to RJ45 LAN Ethernet Adapter 100Mbps USB to RJ45 LAN Converter 10M 100M with Asix AX88772B AX88772 Chip (Type C to RJ45): USB Network Adapters - Amazon.com ✓ FREE DELIVERY possible on eligible purchases
www.amazon.com
or this:
Amazon.com: Plugable USB 2.0 to Ethernet Fast 10/100 LAN Wired Network Adapter Compatible with Chromebook, Windows, Linux: Computers & Accessories
Buy Plugable USB 2.0 to Ethernet Fast 10/100 LAN Wired Network Adapter Compatible with Chromebook, Windows, Linux: USB Network Adapters - Amazon.com ✓ FREE DELIVERY possible on eligible purchases
www.amazon.com
i will test hubs and network + hub in the future also
EDIT:
If connecting on a network without DHCP, you can add manually the ip by using "ifconfig eth0 192.168.1.100" in termux for example. i believe needs root for that. ("su" before running ifconfig)
without setting manual ip on network without DHCP, the network won't work .
EDIT2:
my brother has the tp-link usb 3.0 to gigabit USB adapter, also did not work. The chip is Realtek RTL8153.
malowz said:
mine is the same, without the case. but this one is gigabit over usb 2.0 (max around 400mbps).
a 10/100 would be enough for me, smaller and with less power consumption. will try to find a compatible chip from asix perhaps in the future
AX88179 = usb 3.0, yours that wasn't working
asix has these usb 2.0 to 10/100 lan IC's:
AX88172A
AX88772A
AX88772B
AX88772C
will try to find any in Brazil.
something like this:
Amazon.com: USB to RJ45 LAN Ethernet Adapter 100Mbps USB to RJ45 LAN Converter 10M 100M with Asix AX88772B AX88772 Chip (Type C to RJ45) : Electronics
Buy USB to RJ45 LAN Ethernet Adapter 100Mbps USB to RJ45 LAN Converter 10M 100M with Asix AX88772B AX88772 Chip (Type C to RJ45): USB Network Adapters - Amazon.com ✓ FREE DELIVERY possible on eligible purchases
www.amazon.com
or this:
Amazon.com: Plugable USB 2.0 to Ethernet Fast 10/100 LAN Wired Network Adapter Compatible with Chromebook, Windows, Linux: Computers & Accessories
Buy Plugable USB 2.0 to Ethernet Fast 10/100 LAN Wired Network Adapter Compatible with Chromebook, Windows, Linux: USB Network Adapters - Amazon.com ✓ FREE DELIVERY possible on eligible purchases
www.amazon.com
i will test hubs and network + hub in the future also
EDIT:
If connecting on a network without DHCP, you can add manually the ip by using "ifconfig eth0 192.168.1.100" in termux for example. i believe needs root for that. ("su" before running ifconfig)
without setting manual ip on network without DHCP, the network won't work .
EDIT2:
my brother has the tp-link usb 3.0 to gigabit USB adapter, also did not work. The chip is Realtek RTL8153.
Click to expand...
Click to collapse
thanks! Yes, it consumes battery. the option you say would be good. I want to ask you something: on the box of the pluggable USB 2.0 it says: warm cancer and reproductive, for p65 California. I have read that it may be from the lead. Is that why you don't have the case on your adapter?
evamel5 said:
thanks! Yes, it consumes battery. the option you say would be good. I want to ask you something: on the box of the pluggable USB 2.0 it says: warm cancer and reproductive, for p65 California. I have read that it may be from the lead. Is that why you don't have the case on your adapter?
Click to expand...
Click to collapse
???? no... its because the original cable was bad and i soldered a new one... as i didn't like the bulk case, i just put heat shrink tube and glue
malowz said:
???? no... its because the original cable was bad and i soldered a new one... as i didn't like the bulk case, i just put heat shrink tube and glue
Click to expand...
Click to collapse
Ahh ok!! Here de message in box.

Categories

Resources