GithubHelp home page GithubHelp logo

Comments (7)

Apollon77 avatar Apollon77 commented on June 16, 2024

In fact the device was found, so UDP stuff worked, but then when opening a TCP connection to the devcie it got a timeout ... soo check that tcp connections to the relevant ports are possible between the networks

from tuyapi.

SatyamWats avatar SatyamWats commented on June 16, 2024

Hey @Apollon77 ! Thanks for the response. Could you further explain what you mean by "soo check that tcp connections to the relevant ports are possible between the networks".

My device and laptop are on different networks, do they have to be on the same one to work?

from tuyapi.

Apollon77 avatar Apollon77 commented on June 16, 2024

As said: different networks normally have issues with UDP messages because they are normally not routed, but this seems to be no issue for you.

So the library finds a device (via UDP) and then tries a TCP connection to port 6668 and there it gets a timeout ... reason is normally network or the device itself.try if you can ping the device IP from the laptop, try if you con dfo a telnet to the said port ...

from tuyapi.

SatyamWats avatar SatyamWats commented on June 16, 2024

I tried to ping the device but got this response:
Ping request could not find host x.x.x.x:6668. Please check the name and try again.

I queried the device IP from the API explorer and can verify that the IP provided is correct however, the ping failed.

from tuyapi.

Apollon77 avatar Apollon77 commented on June 16, 2024

Yeees ... becauzse you can only pong a host and not a port ...

from tuyapi.

SatyamWats avatar SatyamWats commented on June 16, 2024

Well I tried to ping the IP itself but still the ping failed. This was the response:

Pinging x.x.x.x with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for x.x.x.x:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

from tuyapi.

Apollon77 avatar Apollon77 commented on June 16, 2024

Then you need to find out why you can not ping the device (if your rother between the networks do not hindert it), but honestly ... I can not give support for such low level network topics ...

from tuyapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.