wokwi-features icon indicating copy to clipboard operation
wokwi-features copied to clipboard

Pico W hosted website does not function using private networking

Open pterodyne opened this issue 1 year ago • 0 comments
trafficstars

Good evening,

I have club membership and have enabled "Private IOT Gateway". I am running wokwigw-linux on ubuntu 22.04, and Im able to make hosted websites work on ESP32 as per the instructions (web controllable LED Example).

I am unable to connect to the Pico's W generated website, and wokwigw-linux shows: cannot connect to host if I try to open the website at http://localhost:9080/

Here is my project:

https://wokwi.com/projects/407507682740207617

Note that in this example the LEDs on the right side are just to simulate a motor running, and the switches simulate a momentary limit switch to stop the motor at the end of the travel of an observatory dome shutter.

Output of the wokwigw-linux when trying to connect to the Pico W's webpage:

./wokwigw-linux 

|  |  /  \  |_/  |  |  |
|/\|  \__/  | \  |/\|  |

    Wokwi IoT Gateway

Version: v1.2.0
Git revision: 9186a27c9d51e9ab3b0a865633b5a3015262b690
Built: Thu, 01 Feb 2024 20:05:51 +0000


Listening on TCP Port 9011
[127.0.0.1:58904] Client connected (https://wokwi.com)
2024/08/28 19:08:37 tcpproxy: for incoming conn [::1]:46556, error dialing "10.13.37.2:80": connect tcp 10.13.37.2:80: no route to host
2024/08/28 19:08:41 tcpproxy: for incoming conn [::1]:55076, error dialing "10.13.37.2:80": connect tcp 10.13.37.2:80: no route to host
2024/08/28 19:08:49 tcpproxy: for incoming conn [::1]:33184, error dialing "10.13.37.2:80": connect tcp 10.13.37.2:80: no route to host

To Reproduce

  1. Create a Pico W project that connects to the IOT wifi and generates a webpage
  2. enable IOT Private gateway.
  3. Run wokwigw-linux
  4. open a browser to: http://localhost:9080/

Expected behavior Should display the webpage generated by the Pico W and allow you to control it.

Environment (please complete the following information):

  • OS: Linux x64 Ubuntu 24.04
  • Browser Chrome 127.0.6533.119 (Official Build) (64-bit) and Firefox 129.0.2 (64-bit)

Additional context It's not clear if it should even be working at this point since the documentation doesn't mention the Pico W having this capability at this time. Only the ESP32 is mentioned.

Thank you, no matter how you shake it, Ive already been able to prototype this needed part for a project 2000 miles away that I will mail to someone to have them install without ever having touched the physical hardware. Great project!

Bryan

pterodyne avatar Aug 29 '24 01:08 pterodyne