Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emulating a UPnP router

Tags:

I want to add the option of automatic port forwarding (NAT Traversal) to an application.

I know this can be done using UPnP (specifically the part that communicates with the device presenting itself as an IGD - Internet Gateway Device).

I need to be able to test this port forwarding feature while developing it. And whatever big router system company traffic is routered over

  • Doesn't provide UPnP.

  • Wouldn't want me messing around with it while it's in live service.

My question is:

Does anyone know of any software that acts as or emulates a UPnP compatible router?

like image 482
xyz Avatar asked Oct 20 '08 08:10

xyz


People also ask

Is UPnP better than port forwarding?

Using UPnP is more convenient, while port forwarding is a lot safer from a privacy standpoint. Some people go for security, and some don't. Who are we to judge? But if you are creating a secure connection between two devices via port forwarding, you are compromising convenience.

Does UPnP slow down internet?

Some argue that manual port forwarding is better for your internet connection speed, since UPnP causes lag. But does it, really? It's highly unlikely, but when it comes to gaming, it might add latency to your connection, yet it shouldn't affect your download speed.

What does UPnP do on a router?

UPnP (Universal Plug and Play) is a service that allows devices on the same local network to discover each other and automatically connect through standard networking protocols (such as TCP/IP HTTP, and DHCP).

Is UPnP automatic?

UPnP completely automates the process. UPnP also allows devices to automatically open ports on your router to connect to home devices which involves port forwarding. In layman terms, port forwarding is just a way for external devices to connect to devices in your network over the internet.


1 Answers

You could use Windows Firewall / Internet Connection Sharing, which supports UPnp by default. Just setup another machine, with Internet Connection Sharing activated, and you will have a UPnp router.

Also, you could check the UPnp forum for more information here.

Later edit:

You could also try setting up a linux/unix firwall with igd activated.

Here is a forum post for ubuntu.

And there is a miniUPnp project too.

like image 163
Bogdan Maxim Avatar answered Nov 15 '22 04:11

Bogdan Maxim