Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway not detecting web things using Docker for Windows #112

Open
henryprosser opened this issue Jul 5, 2022 · 1 comment
Open

Gateway not detecting web things using Docker for Windows #112

henryprosser opened this issue Jul 5, 2022 · 1 comment

Comments

@henryprosser
Copy link

Hi, I've successfully set up the gateway however when trying to connect a virtual thing to the gateway, it is not found. I followed this tutorial to add a virtual thing: https://github.com/WebThingsIO/webthing-python. The web thing server is definitely working as I can connect to the URL and it displays the thing's information.

I have tried adding via URL but I get an error 400. I was also getting an ECONNREFUSED error in the docker terminal however this is not showing anymore. After doing much troubleshooting, it appears it may have something to do with host networking - which I am aware is not supported in Docker for Windows. Does this mean it is not possible to setup a gateway and connect things to it using the docker image in Windows?

This is all very new to me so apologies if I have missed something obvious!
img1
img2

@henryprosser
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant