1
Vote

IPv6 addresses

description

When calling invoke action "AddPortMapping" with an ipv6 address like 2601:0:8080:16a:31a8:5a04:357a:506c it throws an exception:

ManagedUPnP.UPnPException was caught
Message=UPnP Error #-2147220984: UPNP_E_INVALID_ARGUMENTS
Source=MCEBuddy.ManagedUPnP
StackTrace:
   at ManagedUPnP.Service.InvokeAction(String name, Object[] inParams) in D:\MCEBuddy\MCEBuddy 2.x\MCEBuddy.ManagedUPnP\Service.cs:line 502
   at MCEBuddy.Engine.UPnP.EnableUPnP(Int32 onPort, Boolean verbose) in D:\MCEBuddy\MCEBuddy 2.x\MCEBuddy.Engine\UPnP.cs:line 86
InnerException: System.Runtime.InteropServices.COMException
   Message=A user-supplied component or subscriber raised an exception (Exception from HRESULT: 0x80040208)
   Source=MCEBuddy.ManagedUPnP
   ErrorCode=-2147220984
   StackTrace:
        at UPNPLib.IUPnPService.InvokeAction(String bstrActionName, Object vInActionArgs, Object& pvOutActionArgs)
        at ManagedUPnP.Service.InvokeAction(String name, Object[] inParams) in D:\MCEBuddy\MCEBuddy 2.x\MCEBuddy.ManagedUPnP\Service.cs:line 487
   InnerException: 
Any idea why? It works fine with ipv4 addresses

comments

TheToid wrote Oct 4, 2014 at 3:19 PM

Hey rboy1,

This looks more like it is an issue with the device itself, so the device is saying that the one or more of the arguments is bad (obviously the IPAddress parameter), maybe the IPv6 address needs to be formatted differently, you would have to read up on how devices implement this action for IPv6 addresses.