Comments (4)
One aspect of your question/issue that I'm unclear about is if this is to detect UPnP on your own specific router, or any Google Fiber router in general (or any router device in general). I.e what is the use-case: working on code that works in a very specific environment (i.e your own local network) or LANs in general. Given that presumably you have gone through your own router's settings to check UPnP status, I'm going to assume that you're asking about more general cases.
I'm not aware that there is any way for a UPnP client to be able to tell the difference between a device that has UPnP disabled versus a device that is not capable of it.
The only difference that I'm aware of is generally in the device settings, usually behind a very device-specific user interface (typically a HTTP/HTML user interface with authentication).
Unless there's evidence to suggest a general way to tell the difference, then I'm afraid that I'll have to call this both out of scope and infeasible for a UPnP client library for the reasons presented above.
from goupnp.
@huin , i am asking about the general use case where router UPnP is by default turned OFF.
I struggled with getting the code to work until I figured out that I needed to turn UPnP ON first in the settings.
See link below on third paragraph.
https://support.google.com/fiber/answer/3658681?hl=en .
Everything works by the way. It is just the inconvenience of not knowing.
from goupnp.
Unfortunately there's not really anything that can be done at the UPnP level here, sorry. In either case all that is seen by a UPnP (and HTTPU in particular) is the lack of a response to a broadcast query. Any code using a UPnP client library (such as goupnp) can take this lack of response and bubble up a message to a user to ask if they have enabled UPnP on their device (or take some other approach that doesn't require UPnP to achieve their aims).
from goupnp.
Thanks, I am already generating a similar message when there is no discovered UPnP device. I will be on the lookout for anything that comes close to that.
from goupnp.
Related Issues (20)
- Unable to find devices most of the time HOT 7
- It's not possible to query ssdp:all HOT 1
- Incorrect err (nil) returned incase of timeout in httpu HOT 6
- Show devices connected to discovered UPnP enabled device. HOT 2
- Why can't i find this upnp device (http://192.168.61.1:5000/rootDesc.xml)? HOT 5
- GetTotalBytesSent() can't parse value, if it's negative HOT 3
- Fail on http post request to router. HOT 12
- httpu multicast fails on multiple interfaces HOT 7
- Please provide example of AV dlna device implementation (audio) HOT 2
- Could you specify some examples? HOT 10
- Making charset dependency optional HOT 6
- SSDPRawSearch: With the same USN, ipv4Response was replaced by ipv6Response, which is not effected for ipv4only client. HOT 1
- Contexts on HTTP calls HOT 6
- httpu: error while parsing response HOT 4
- Any plan to add SSDP Server Support ? HOT 1
- get the IP associated with the interface used to successfully discover the upnp setup ? HOT 26
- feat: context everywhere and non-blocking results HOT 2
- update the guide HOT 1
- Provide an API to use specific ip addresses for discovery HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goupnp.