GithubHelp home page GithubHelp logo

sgt-nukem / upnp_portmapp0r Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 19 KB

Add, remove and list port mappings (i.e. forwarding rules) to/from/of your UPnP-capable router from Windows

License: Other

C# 100.00%
upnp-portmapper windows console-application

upnp_portmapp0r's Introduction

UPnP_PortMapp0r

Add, remove and list port mappings (i.e. forwarding rules) to/from/of your UPnP-capable router from Windows.

System Requirements

This tool only runs on a Windows operating system (as it is just a wrapper around NATUPNPLib). It also needs a .NET Framework 4.0 compatible .NET platform installed (client profile suffices).

Usage

UPnP_PortMapp0r - by Sgt. Nukem, version: 0.1.3.7  
=================================================  

Usage: UPnP_PortMapp0r 'command' [parameters]

where 'command' can be:
  list    - lists all port mappings.
  add     - adds a port mapping, specify parameters       'port' 'protocol' 'mapped-address' [mapped-port]
  remove  - removes a port mapping, specifiy parameters   'port' 'protocol'

Exmaple:  > UPnP_PortMapp0r  add  443  TCP  192.168.1.200

Prerequisites

You will need a UPnP-capable router in your local subnet and enable dynamic adding of port mappings to programs.

Example Router configuration:

Manufacturer: AVM GmbH, Berlin, Germany Model: Fritz!Box 7320

Navigate to (german) Internet -> Freigaben -> Portfreigaben (english) Internet -> Sharing -> Port Sharing

You will need to check the option (german) [X] Änderungen der Sicherheitseinstellungen über UPnP gestatten" (english) [X] Allow changes to security settings via UPnP

Otherwise you will get strange COM exceptions like "HRESULT: 0x80040209".

upnp_portmapp0r's People

Contributors

sgt-nukem avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

boqsc

upnp_portmapp0r's Issues

object reference error on Windows 10


C:\Users\vaida\Desktop\Minecraft server2>UPnP_PortMapp0r add 25565 tcp 192.168.0.105

UPnP_PortMapp0r - by Sgt. Nukem, version: 0.1.3.7
=================================================


Error: Could not add port mapping. Exception: Object reference not set to an instance of an object.

C:\Users\vaida\Desktop\Minecraft server2>UPnP_PortMapp0r "remove" "25565" "tcp"

UPnP_PortMapp0r - by Sgt. Nukem, version: 0.1.3.7
=================================================


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at UPnP_PortMapp0r.Program.RemoveMapping(UPnPNAT upnpNAT, String[] args)
   at UPnP_PortMapp0r.Program.Main(String[] args)

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.