Hilscher Community Forum
operating Console of a container on netPI connected to Wi-Fi tethering - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: operating Console of a container on netPI connected to Wi-Fi tethering (/thread-666.html)



operating Console of a container on netPI connected to Wi-Fi tethering - tad - December-2nd-2020

Dear Armin,

I'm in trouble now.
A netPI isn't connected to a company LAN so that netPI and my PC are now connected by Smartphone's tethering function.

netPI  _____   Smartphone  _____ Internet
PC


With this environment, I was able to pull and deploy a container from Docker Hub.
Next, I want to update software packages by commanding 'apt update' on Console.

But, as attached files, it seems not to connect Internet site.
- 'apt update' couldn't find Internet sites.
- Ping didn't get response from Yahoo.

I think it is not a netPI's problem, it may be caused by something tethering functionality.
But, if you know something to solve this problem, I would appreciate it.

Best regards,


RE: operating Console of a container on netPI connected to Wi-Fi tethering - Armin@netPI - December-2nd-2020

This is my explanation: your DNS name server configuration of your Wifi setup seems not to be correct. I see in one of your screen shots the DNS server setup is 192.168.43.xxx which maybe is the ip address of your smartphone, right? But usually a smartphone does not have a DNS server integrated, so all tries to resolve internet names like yahoo.co.jp across the non existent smartphone DNS server lead to a dead connection.

In my opinion you have to change the DNS server setting to a public DNS server 8.8.8.8 as explained here https://developers.google.com/speed/public-dns while the gateway remains of course the IP address of your smartphone in your setup.

This is all you need to do


RE: operating Console of a container on netPI connected to Wi-Fi tethering - Armin@netPI - December-2nd-2020

I tried it myself today and had the same effect but I found the reason: in the whole netPI network setup it is allowed to have only one network gateway configured.

In your screen shot of your wifi connection I see a gateway address configured which is good. But I am pretty sure your netPI has a second gateway address in LAN eth0 setup also configured.

What you have to do is to remove the gateway address in LAN eth0 setup. This gateway address has always higher priority compared to Wifi the gateway address.

So configure LAN eth0 setting to static IP address and the you can remove the gateway address like my screen shot with the backspace keyboard key.

   

And in my test setup a DNS server in Wifi configuration was not necessary at all by the way. So forget my previous post.


RE: operating Console of a container on netPI connected to Wi-Fi tethering - tad - December-3rd-2020

Dear Armin,

Thank you very much for your investigation and information.
I was able to execute 'apt update' on the console after the setting.

Even though it was not a netPI specific issue, I appreciate your kind support.
Best regards,