• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with USB tethering
#1
Is anyone else having problems with USB tethering? It seems like I'm not getting a DNS server, I can ping an IP address but I can't ping a literal server name.

Sent from my LG-K580 using Tapatalk
  Reply
#2
I've been researching this problem. Looking at wifi_server.py, I see these lines

Code:
data += 'allow-hotplug usb0\n'
data += 'iface usb0 inet static\n'
data += 'address 192.168.42.100\n'
data += 'netmask 255.255.255.0\n'
The other interfaces, like eth, are set with "iface eth0 inet dhcp".

Is there a reason why the usb interface is declared as static?

Okay, this fixed it for me. In wifi_server.py

change:
data += 'allow-hotplug usb0\n'
data += 'iface usb0 inet static\n'
data += 'address 192.168.42.100\n'
data += 'netmask 255.255.255.0\n'

to:
data += 'allow-hotplug usb0\n'
data += 'iface usb0 inet dhcp\n'
#data += 'iface usb0 inet static\n'
#data += 'address 192.168.42.100\n'
#data += 'netmask 255.255.255.0\n'
data += 'dns-nameservers 8.8.8.8 8.8.4.4\n'

Then reboot. You'll have to set your phone to USB tethering in order for the Openplotter AP page to recognize it as a valid internet interface.
  Reply
#3
(01-07-2018, 06:04 PM)abarrow Wrote: Is there a reason why the usb interface is declared as static?

Yes!
If you work headless or your monitor is down and your wifi does not work or ...
A workaround could be an android USB tethering phone/tablet.
You can start USB tethering.
Open vnc with fixed IP!!!! 192.168.42.100 and login.
Now you have a kind of monitor to work with openplotter also if other networks don't work.

You're right. The description for this feature is not finished yet.

There is also the chance to use the phone as second wlan to connect to the internet ...
There is also the chance to use the phone as gsm internet connection ...
Not all possibilities are tested (Your addition can be correct for some situations).
  Reply
#4
Thanks for the explanation - that makes perfect sense. 

I'll try just adding the dns-nameserver line and retaining the static.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)