Connect TF300T in Asus Connect Dock to Linux Machine via Ethernet - Transformer TF300T Q&A, Help & Troubleshooting

I'm attempting to connect my Asus TF300T in an Asus Connect Dock to a linux box using an ethernet crossover cable. The TF300T is running CM 10.2. After Googling a bit, I tried setting up new wired connections on the linux box using both the link-local method and the manual method and assigning an IP address. Unfortunately I havent been able to ping the linux box from the tablet using either method. This is uncharted territory for me and so am unsure how to proceed (or if this is even possible). Does anyone have any pointers they could share about how to accomplish this?

jtdevxda said:
I'm attempting to connect my Asus TF300T in an Asus Connect Dock to a linux box using an ethernet crossover cable. The TF300T is running CM 10.2. After Googling a bit, I tried setting up new wired connections on the linux box using both the link-local method and the manual method and assigning an IP address. Unfortunately I havent been able to ping the linux box from the tablet using either method. This is uncharted territory for me and so am unsure how to proceed (or if this is even possible). Does anyone have any pointers they could share about how to accomplish this?
Click to expand...
Click to collapse
Sorry, no pointers, just a few things to look at.
Make sure on both sides that you have a valid IP address in the same subnet. You can use "ip addr" to list all interfaces and addresses.
On the PC manual assignment is probably best. For the tablet, you could run a DHCP server on your PC or assign it manually too.
If "ip addr" shows different IP addresses in the same subnet, and you still have no ping, the next best guess is to check the firewall rules on both sides.
Sent from my TF300T using Tapatalk

f69m said:
Sorry, no pointers, just a few things to look at.
Make sure on both sides that you have a valid IP address in the same subnet. You can use "ip addr" to list all interfaces and addresses.
On the PC manual assignment is probably best. For the tablet, you could run a DHCP server on your PC or assign it manually too.
If "ip addr" shows different IP addresses in the same subnet, and you still have no ping, the next best guess is to check the firewall rules on both sides.
Sent from my TF300T using Tapatalk
Click to expand...
Click to collapse
I haven't been able to find a way to manually assign the IP for eth0 on the tablet, so I attempted to install a dhcp server on the linux box in hopes that it would then assign the IP address to the tablet. I installed isc-dhcp-server and made sure that the following line in /etc/default/isc-dhcp-server was set: INTERFACES="eth0". After running sudo service isc-dhcp-server restart on the linux box I shut wired connections off, plugged in the cross over cable to both machines, and then turned on the wired connection on the linux box that I created to use a manual IP (10.0.0.1). The tablet doesn't get an IP assigned that I can tell - at least nothing shows up when I run ifconfig or 'ip addr'.
I'm not sure if this has anything to do with it or not, but on the tablet I took a look at /etc/dhcpcd/dhcpcd.conf and it appears that it only contains configuration for the wlan0 interface. Is it possible that I need to provide some additional configuration on the tablet side to get eth0 to work properly since it is being provided by the Asus Connect Dock?

jtdevxda said:
I haven't been able to find a way to manually assign the IP for eth0 on the tablet, so I attempted to install a dhcp server on the linux box in hopes that it would then assign the IP address to the tablet. I installed isc-dhcp-server and made sure that the following line in /etc/default/isc-dhcp-server was set: INTERFACES="eth0". After running sudo service isc-dhcp-server restart on the linux box I shut wired connections off, plugged in the cross over cable to both machines, and then turned on the wired connection on the linux box that I created to use a manual IP (10.0.0.1). The tablet doesn't get an IP assigned that I can tell - at least nothing shows up when I run ifconfig or 'ip addr'.
I'm not sure if this has anything to do with it or not, but on the tablet I took a look at /etc/dhcpcd/dhcpcd.conf and it appears that it only contains configuration for the wlan0 interface. Is it possible that I need to provide some additional configuration on the tablet side to get eth0 to work properly since it is being provided by the Asus Connect Dock?
Click to expand...
Click to collapse
That's a good point, probably you need to tell dhcpc on the tablet to work on eth0 too, never really tried that. Also you probably need to configure dhcpd on your PC for the subnet you use.
But maybe better to get a manually configured ping first, then tackle DHCP.
On your tablet try:
ip addr add 10.0.0.10/16 dev eth0
The /16 is just an example and should match the prefix set on your PC.
If you can get a ping with that, I am happy to assist you setting up DHCP.
Sent from my TF300T using Tapatalk

f69m said:
That's a good point, probably you need to tell dhcpc on the tablet to work on eth0 too, never really tried that. Also you probably need to configure dhcpd on your PC for the subnet you use.
But maybe better to get a manually configured ping first, then tackle DHCP.
On your tablet try:
ip addr add 10.0.0.10/16 dev eth0
The /16 is just an example and should match the prefix set on your PC.
If you can get a ping with that, I am happy to assist you setting up DHCP.
Sent from my TF300T using Tapatalk
Click to expand...
Click to collapse
That worked! Thanks. I was able to ping successfully in both directions. I need to do some further testing but I think I might be able to use the static IPs and avoid having to setup the DHCP server on the laptop. I will do further investigation in the morning and post results.

Related

Is it possible to mns to wireless router via xp computer

been messing with it all day, i'm sure i am doing something wrong googled the hell out of it though.
ok here is what i am trying to do, I just bought a Acer Nettop running XP i installed the HTC drivers on it MNS is working great. i would like to hook up my wireless router to the Ethernet port to share the internet connection with the rest of my gadgets.
any help would be appreciated.
smittycg said:
been messing with it all day, i'm sure i am doing something wrong googled the hell out of it though.
ok here is what i am trying to do, I just bought a Acer Nettop running XP i installed the HTC drivers on it MNS is working great. i would like to hook up my wireless router to the Ethernet port to share the internet connection with the rest of my gadgets.
any help would be appreciated.
Click to expand...
Click to collapse
Why don't use Wireless Tether and everything can pull internet from the phone without the need of a router?
Bridge the connections in network connections or use ICS
morbidpete said:
Bridge the connections in network connections or use ICS
Click to expand...
Click to collapse
tried both of those, the bridge would connect, but no internet, ics didn't work either, i am pretty tired though probably missing something simple.
WIFI tether is cool and all but i want to use it full time with a dedicated phone and be able to use my wireless printer
I've never been able to get to work if you do post Back with what you did. I think the issue is up addresses, you may have to setup the router gateway address as the pcs ip or even the phones ip... Im not a networking guru though
Kcarpenter said:
I've never been able to get to work if you do post Back with what you did. I think the issue is up addresses, you may have to setup the router gateway address as the pcs ip or even the phones ip... Im not a networking guru though
Click to expand...
Click to collapse
to be honest i was hoping someone had done it and could tell me how easy it was. while trying to get it to work today i was just clicking around, tomorrow i'll go about if more scientifically and post all the stuff i'm doing wrong.
I can't see any reason off the top of my head why ICS wouldn't work.
So, let me see if I have this straight. Your phone is connected to your PC via USB. Your access point is connected to the PC via ethernet. And you want other devices to connect over wifi and have Internet access. That about right?
Try this... Assign the ethernet port on your PC a static IP address of 192.168.1.1. Connect that to the "Internet" port on your access point, and assign that port an IP address of 192.168.1.2. In the wireless setup on your access point, assign the wireless side the static ip address 192.168.2.1 and tell it to act as a dhcp server, and hand out addresses from 192.168.2.100 to 192.168.2.200. Netmask in all cases will be 255.255.255.0. For dns go ahead and use 208.67.222.222 unless you have another dns service that you prefer.
The router should be configured to use 192.168.1.1 as its default gateway. The wireless devices should be set to use 192.168.2.1 as their default gateway.
This *should* work. Different accesss points can be finicky in various ways, but I really don't see why the setup I've outlined wouldn't work....

[Q] How can I change MAC Address on Samsung Galaxy S

I've read other thread about changin MAC address via ADB or Terminal Emulator with the command
`busybox ip link set eth0 address nn:nn:nn:nn:nn:nn`
This appears to change it temporarily on my rooted SGS, but after I try and connect to the wifi, it gets switched back to the hardware MAC.
Reason I'm attempting this is because my building wifi only allows me to connect 1 computer. They have the wifi un-locked by restricted to MAC addresses. So I want the ability for my phone and my laptop to have the same MAC addresses, so that I can connect them both (but one at a time) to the wifi. No they will not allow me to add another device, so I need to clone the MAC address....
So with that said, how does one change the mac address in the SGS.
More threads:
forum.xda-developers . com/showthread.php?t=750596
I also tried to use
`ifconfig eth0 hw ether nn:nn:nn:nn:nn` as I would under linux, but to no avail.
Any assistance would be appreciated.
Cheers
Jordan
I have a Samsung Galaxy S Captivate and I was NOT able to spoof my MAC address either using the above mentioned commands. Any other ideas?
may i suggest a micky mouse?
why not take out the laptop and add the samsung's mac address?? tell them you got a new laptop ect?
its easier to spoof the mac address in a laptop
any news?
i need to change address too ...
if you have a Ethernet line in your apt just get a wireless router and disable broadcasting.
Leviuqse said:
may i suggest a micky mouse?
why not take out the laptop and add the samsung's mac address?? tell them you got a new laptop ect?
its easier to spoof the mac address in a laptop
Click to expand...
Click to collapse
Theoretically sound, but practically not applicable. I have many MACs of my friends at work (institution) and I want to use any of the MACs on my android.
It is possible. i have given procedure for LG Optimus One. Same can be used for u'r phone. Just have to locate nvram.txt file. and appen line "macaddr = XX:XX:XX:XX:XX:XX" Where "XX:XX:X..." is u'r new mac address.
Here's the link
http://forum.xda-developers.com/showthread.php?t=917684
Not working

Ad-Hoc WiFi Issues

Hi everyone,
I'm having issues with ad-hoc wifi connections on my transformer. Unlike most other people, I'm not trying to tether to a phone, I'm trying to connect with a computer so I can achieve a lower latency when I'm using some android pro audio control apps.
The problem is that the transformer sees the ad-hoc network, but cannot connect it (can't get an IP). I tried all different forms of security, including no security. Nothing works.
I'm running stock 8.6.5.21, rooted. No custom kernels or custom ROMs. It's a B60 pad, so it was rooted via nvflash.
Any help would be appreciated. Thanks in advance!
You need to either configure a DHCP server on your computer so that your TF101 is allocated an IP, or you need to configure a static IP on your TF101 so that it can talk to the computer.
a.mcdear said:
You need to either configure a DHCP server on your computer so that your TF101 is allocated an IP, or you need to configure a static IP on your TF101 so that it can talk to the computer.
Click to expand...
Click to collapse
Thanks for the answer, but doesn't that get done automatically by Windows 7? If not, that seems kind of stupid...
I can confirm that it is not a windows 7 issue. My ipod touch connects to my computer-based ad-hoc network just fine, without any IP configuration or extra software. My pad still refuses to. Help?
Thanks!
I had the same issues at the beginning. I switched kernels and roms but none of them worked out of the box with ad-hoc network on win7. But windows 7 gives you the possibility (except starter edition) to set up a virtual router which works perfectly for me (I don't know if it is a sign of small latency that I was able to use splashtop with less than 1 second offset...). Just google the term "virtual router" and you will find a pretty nice open source tool. An alternative would be connectify, but this always made my laptop fan scream after a while.
Thanks, I'll check it out and report back.

GT-P5113 USB Ethernet

Has anyone had any luck getting a wired ethernet connection working on their device? I feel like I'm missing some minor piece of configuration that prevents me from getting it working. Here's what I've got so far.
1) compiled asix.ko, usbnet.ko and mii.ko for P5113
2) insmod above modules
3) connect usb ethernet adapter
As soon as I complete this, the following happens:
a) lights start flashing as soon as I connect ethernet cable
b) eth0 becomes a recognized interface
The problem is that I can't get the device to get an ip address. Neither a statically assigned ip address works, nor is one retrieved using dhcpcd. The strange thing is that when I run wireshark and do some port-mirroring on my switch, I see that the DHCP server is offering an ip address to the device, but the device doesn't seem to want to accept it. Traceroutes and pings to my gateway all show "host unreachable" messages.
Usb to Ethernet
Did you solve this? I am a network engineer that would love to see this fixed I have tried a couple of different ones and none of them have worked yet.

Assigning a static IP address to a phones hotspot

How can I assign a static IP address to my phones hotspot?
I use the hotspot on my Samsung M31 to connect my laptop running Windows 10 to the internet.
I also have Oracle's Virtual Box VM running a few test websites on the laptop on Ubuntu Server 22.04, which need a static IP address to access.
A few days back when I ran ipconfig at the Windows command prompt, it showed my wireless IP address as 192.168.166.135. Today, it show as 192.168.35.125. Meaning, all my sites are now broken. Is there a way to stop the hotspot from changing IP addresses?
Can someone please help?
Thanks,
normanscr said:
How can I assign a static IP address to my phones hotspot?
I use the hotspot on my Samsung M31 to connect my laptop running Windows 10 to the internet.
I also have Oracle's Virtual Box VM running a few test websites on the laptop on Ubuntu Server 22.04, which need a static IP address to access.
A few days back when I ran ipconfig at the Windows command prompt, it showed my wireless IP address as 192.168.166.135. Today, it show as 192.168.35.125. Meaning, all my sites are now broken. Is there a way to stop the hotspot from changing IP addresses?
Can someone please help?
Thanks,
Click to expand...
Click to collapse
I don't know the answer to your question directly as your situation is more complicated than is mine but I will try to help in so much as you can at least check what your current settings are.
My setup is only similar to yours in that I have apps (such as vysor & scrcpy) on Windows which are expecting a static IP address from my phone. However, where my setup differs from yours is I'm not using my phone as a hotspot - the router is assigning the IP addresses.
However, maybe what I've learned by randomizing my MAC address on each connection can help you - where I say maybe - as I your situation is using the phone as a hotspot and mine is passively accepting the IP address handed to the phone by the router.
In Android 11, the phone's Wi-Fi radio MAC address can be randomized per SSID, in which case the "address reservation" feature of most routers (often incorrectly called "static" IP addresses) won't work as intended. Worse, in Android 12, in Developer options, you can set a switch to randomize the Wi-Fi radio MAC address of the phone on every connection, regardless of the SSID.
Hence, you have to set the "static" IP address request in the phone itself, so that the router will respect that request for a static IP address.
(As an extra complexity, my SSID broadcast is hidden for privacy reasons (not for security - but privacy), which complicates things only a tiny bit as you have to turn off auto-reconnect for privacy.)
See the images below where maybe (but maybe not!) this information will help you track down why in your (hotspot) case, this static IP address requrest isn't being honored in your hotstpot setup.
normanscr said:
How can I assign a static IP address to my phones hotspot?
I use the hotspot on my Samsung M31 to connect my laptop running Windows 10 to the internet.
I also have Oracle's Virtual Box VM running a few test websites on the laptop on Ubuntu Server 22.04, which need a static IP address to access.
A few days back when I ran ipconfig at the Windows command prompt, it showed my wireless IP address as 192.168.166.135. Today, it show as 192.168.35.125. Meaning, all my sites are now broken. Is there a way to stop the hotspot from changing IP addresses?
Can someone please help?
Thanks,
Click to expand...
Click to collapse
Hi ,
if You are the lucky owner of a rooted phone you can try this:
How do I assign a permanent static IP address to hotspot in Android 10
I would like to assign a permanent static IP address to hotspot in Android 10 (Unofficial LineageOS 17.1 for Natrium by LuK1337, rooted with Magisk v20.3 and updated to Jan 11, 2020 build). Now whenever I turn on the hotspot, it assigns a...
forum.xda-developers.com
To assign a static IP address to your phone's hotspot:
Go to your phone's settings and find the hotspot or tethering settings.
Look for the option to set the IP address as "Static" or "Manual."
Enter the desired IP address, subnet mask, gateway, and DNS server information.
Save the settings and restart the hotspot.
For more details, you can check out https://1921681.mobi/192-168-100-1/. Hope this helps.

Categories

Resources