Port forwarding using UPnP

From Wippies Wiki

Jump to: navigation, search

Sisällysluettelo

Port Forwarding using UPnP

Settings needed in Windows XP

  1. Set the service "SSDP Discovery Service" to start automatically.
  2. Set the service "Universal Plug and Play Device Host" to start automatically.
  3. If using the Windows Firewall, make sure the checkbox "UPnP Framework" is set under the tab "Exceptions".
  4. If using another firewall, open the UDP port 1900 and the TCP port 2869.


Needed software



  • Unpack the file upnpc(.exe) to a suitable place. If you would like to use the program frequesntly, unpack it to c:\windows\system32\ or under Linux to /bin/ for instance. In this way, you do not need to enter the path to the program, just upnpc + options suffices.
  • upnpc
    • shows instructions:
C:\>upnpc
upnpc : miniupnp test client. (c) 2006 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
Usage : upnpc -a ip port external_port protocol Add port redirection
        upnpc -d external_port protocol Delete port redirection
        upnpc -s                                Get Connection status
        upnpc -l                                List redirections
        upnpc -r port1 protocol1 [port2 protocol2] [...]
                                Add all redirections to the current host

protocol is UDP or TCP

C:\>
  • upnpc -l
    • shows opened ports
  • upnpc -a (+options)
    • adds a port forwarding (ie., opens a port)
  • upnpc -d (+options)
    • removes a port forwarding
  • upnpc -r (+options)
    • adds a port forwarding to the current local network
  • upnpc -s
    • shows connection status

Examples:

upnpc -a 192.168.0.9 21 21 TCP
  • opens port 21 (TCP) and directs traffic to the address 192.168.0.9. Opening of UDP ports is also possible.
  • NOTE! These instructions are provided so that you do not need to use the Wippies setup page to open ports. If the setup page is used to open ports, it may erase port forwardings set by UPnP. Thus, we suggest that you use either method, not both, or check how the port forwardings work in practice.
  • REMEMBER to set a static IP address for your computer as well, so that it does not change:

http://forum.wippies.com/wiki/MS_Windows_Static_IP_Settings

You can make an BAT-file, where you can include many portforwards with uPnP, and make it to start everytime you start your computer! This way you will have reliable way to set many more forwards than possible with my.wippies.com!

Personal tools
SwedishEstonianFinnish