Code Monkey home page Code Monkey logo

Comments (5)

huin avatar huin commented on June 12, 2024

It's not clear what's causing this not to be found. What would be most useful is a filtered packet dump of what UDP packets came from 192.168.61.1 (or whatever IP the device is on at the time) in the two situations:

  1. when asking goupnp to discover devices
  2. when the third party app is discovering

Filtered especially to avoid over-sharing what's happening on your home network.

Particularly of interest are UDP packets that contain something looking like an HTTP response.

from goupnp.

siredwin avatar siredwin commented on June 12, 2024

The router is safe. It is for testing purposes only on the local network and nothing important connects to it.

What UDP packets are you implying? Unfortunately, the third party app(android - app) manages to find urls from both of my UPnP enabled routers in less than 5 seconds but none of the Go packages do.

from goupnp.

huin avatar huin commented on June 12, 2024

From your description I'm assuming that you're using goupnp to discover the router on your network, and it's failing to do so. (sidenote: do you have the code snippet?)

UPnP uses a few protocols to work. The discovery portion of it sends UDP to the local network, and then it listens for replies from devices. I'm guessing that some portion of this discovery process is not working.

from goupnp.

siredwin avatar siredwin commented on June 12, 2024

I am just running the examples for now.

// Use discovered WANIPConnection2 services to find external IP addresses.
func Example_WANIPConnection2_GetExternalIPAddress() {
    clients, errors, err := internetgateway2.NewWANIPConnection1Clients()
    extIPClients := make([]GetExternalIPAddresser, len(clients))
    for i, client := range clients {
	    extIPClients[i] = client
    }
    DisplayExternalIPResults(extIPClients, errors, err)
    // Output:
 }

//Successfully discovered 0 services:

from goupnp.

siredwin avatar siredwin commented on June 12, 2024

Fixed!
It was my local firewall.
Now I will try to figure out which ports I need to open locally.

from goupnp.

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.