Gateway not detecting web things using Docker for Windows

Where did you run your virtual thing from?

I am running this code (https://github.com/WebThingsIO/webthing-python/blob/master/example/single-thing.py) on VS Code on the same computer I am using Docker on

Ok so not on the gateway, have you test your thing url in your web browser?

Yes, it displays the following:

Please show me ipconfig result (or ifconfig of your Desktop computer is linux)

What info do you need about the ipconfig?

Try the following:

  • use local computer ip for the hardware nic of the computer
  • look in ipconfig for a NIC created to share the network between your computer and docker

One of those two ip should work, localhot won’t work because your thing id not running from your docker, but from your computer

Sorry I’m not sure what you mean. Typing in ipconfig in terminal displays lots of information and I understand each main heading is a NIC which displays info like

  • IPv4 address
  • IPv6 address
  • Subnet mask
  • Default gateway
  • etc…

Can you gave me the name of each nic and the ipv4 addreas (those are not sensitive except ig ypu have a public faced ip wich shouldn’t be

So the only two that have ipv4 addresses are: “Wireless LAN adapter WiFi” and “Ethernet adapter vEthernet (WSL)”

Try to connect with the ip of wsl:8888 from the gw

error 400 still :frowning:

Are you able to share your thing code?

This is what I am using currently

Yeah but to help i will need to see the code you’re running,

I’m running exactly the code above in VSCode and this is what the terminal looks like when I run it

i don’T have time right now, but i will give a try to the code soon and let you know how it goes.

Ok ty, much appreciated

Finally solved… For anyone who has the same problem/encounters it in the future, you need to change the thing server port to 8080 (ie the same port as the gateway). Then type in ipconfig in terminal and copy the Wireless LAN adapter WiFi IPv4 address. Then add the thing via URL with the following address

Wireless LAN adapter WiFi IPv4 address: 8080

Happy you find the issue and thank for.the feedback