Click here to Skip to main content
15,901,969 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
So i've been looking around. I'm currently working on this portforwarding project and it's going really well, the only issue I am facing right now is that my application doesnt work on the routers that dont have the uPnP settings enabled.
So I was thinking.. Is there a way to enable this feature without logging into your router and I found this.
How to enable UPnP in Windows[^]
I mean like I dont think that will do it, does this method have the same outcome as if you were to login to 192.168.0.1 and press enable on the uPnP settings in your router?

What I have tried:

Googleing, tried using those settings, didnt see a diference, playing around with different code libraries etc.
Posted
Updated 24-Sep-17 5:43am

No. I've yet to see a Windows based router - I suspect they don't exist. All the ones I've seen are Linux based. And enabling uPnP on a router is not going to be that simple, as every router has different configuration screens, so you will have to find out how to do it for each router separately.
 
Share this answer
 
Quote:
So I was thinking.. Is there a way to enable this feature without logging into your router

Short answer: No!
You will not change any router setting without being logged, no matter what.
Quote:
I mean like I dont think that will do it, does this method have the same outcome as if you were to login to 192.168.0.1 and press enable on the uPnP settings in your router?

Windows have firewall that tell which app have access to internet/network and which app don't.
By activating uPnP on windows, you say that any app using uPnP have access to local network on windows. note that you are already logged to windows to enable uPnP on windows, and preferably as admin.
 
Share this answer
 
Think about what you're asking. If it was possible to enable UPNP on someones router from your code WITHOUT logging into the router, what's stopping any malware running on a machine inside the network from doing it?

Would you want malware doing that to your router?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900