Gateway not detecting web things using Docker for Windows

Why didn’t you try the virtual adapter addon then? If the goal is only to have a virtual thing

Hi @Martin_Verret, sorry I should have been more specific of my goal. I am aware of the virtual adapter addon and if I cannot solve this then that will have to be my backup. However, I already have python code for a custom thing which has lots of properties and events which would take substantial time to enter in manually via the addon GUI. Therefore obviously my preferable option is to have it working via python code so I thought I would check to see if there is a solution that way.

Try to add -p 8888:8888 in additon to.the other two

sadly it doesn’t change anything :pensive:

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