• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Wifi in a Container
#2
Hello Iotuser,

this is very easy. If you use the option "network=host" then docker starts the container using the same TCP/IP stacks as the Linux Host system. In this case it is not a matter of the physical interfaces eth0 and wifi any more, but just a matter of the ip addresses that you have configured.

So make a simple test:
If you configure the eth0 IP address of netPI to 192.168.30.1 for example then you can reach the node-red under 192.168.30.1:1880.
If you now configure the wifi address of netPI to 192.168.40.1 for example (in access point mode) and you connect your mobile phone to this wifi network getting then you can reach node-red under 192.168.40.1:1880 also.

You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
[SOLVED] Wifi in a Container - by iotuser - March-22nd-2018, 11:42 AM
Answer - by Armin@netPI - March-22nd-2018, 06:12 PM
Answer - by iotuser - March-23rd-2018, 09:32 AM
Answer - by Armin@netPI - March-23rd-2018, 10:04 AM
Answer - by iotuser - March-23rd-2018, 11:51 AM
Answer - by Armin@netPI - March-23rd-2018, 01:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NetPI WiFi through Internet DSongra 1 2,005 September-7th-2021, 07:54 AM
Last Post: Armin@netPI
  NetPI wifi access to WPA2-Enterprise MikeP 4 4,390 September-3rd-2021, 02:56 PM
Last Post: MikeP
  TOSILOCK for CONTAINER COswald 3 2,286 July-13th-2021, 11:32 AM
Last Post: Armin@netPI
  Access to RTC from my own container application tad 1 3,609 March-19th-2021, 02:58 PM
Last Post: Armin@netPI
  [SOLVED] Starting services/commands/scripts at startup of a container Jonas.Sellmann@outlook.de 9 6,319 March-9th-2021, 08:47 AM
Last Post: WalterSchaefer
  wifi MAC is changing j.langlois 3 2,819 January-26th-2021, 04:23 PM
Last Post: Armin@netPI
  OpenVPN container Armin@netPI 0 1,676 January-3rd-2021, 12:13 PM
Last Post: Armin@netPI
  operating Console of a container on netPI connected to Wi-Fi tethering tad 3 2,724 December-3rd-2020, 12:32 PM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,804 November-25th-2020, 01:06 PM
Last Post: zen89
  NPIX-4DI4DO and NetPi-Nodered container issues alhammi 4 7,966 November-16th-2020, 01:35 PM
Last Post: alhammi

Forum Jump:


Users browsing this thread: 1 Guest(s)